Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   WebDAV & IIS (https://www.delphipraxis.net/191463-webdav-iis.html)

Gruber_Hans_12345 19. Jan 2017 08:18

WebDAV & IIS
 
----- Kann gelöscht werden -----

das Transalte: f wars

Hallo ich bin gerade dabei das WebDAV Protokoll zu verstehen, vorallem in zusammenspiel mit dem Windows Explorer.
Dazu habe ich auf einem IIS das eingestellt, und versuche das Verhalten nun nachzubauen.

Wenn ich nun per Explorer auf den WEbDAV ORdner gehe und ein Excel File Doppelklicke, dann macht mir das Excel direkt auf, ohne erneut nach username zu frage.
nur verstehe ich die abfrage hierzu nicht

Als erstes kommt eine LOCK abfrage (Da ohne user wird diese mit 401 verweigert)
Code:
LOCK http://192.168.2.252:7080/ID815/test.xls HTTP/1.1
Cache-Control: no-cache
Connection: Keep-Alive
Pragma: no-cache
Content-Type: text/xml; charset="utf-8"
User-Agent: Microsoft Office Excel 2013
Translate: f
Timeout: Second-3600
X-IDCRL_ACCEPTED: t
Connection: Keep-Alive
Content-Length: 200
Host: 192.168.2.252:7080

<?xml version="1.0" encoding="utf-8" ?><D:lockinfo xmlns:D="DAV:"><D:lockscope><D:exclusive/></D:lockscope><D:locktype><D:write/></D:locktype><D:owner><D:href>test</D:href></D:owner></D:lockinfo>
danach kommt eine GET Anfrage wieder ohne USER daher mit 401 verweigert
Code:
GET http://192.168.2.252:7080/ID815/test.xls HTTP/1.1
Connection: Keep-Alive
Content-Type: text/xml; charset="utf-8"
User-Agent: Microsoft Office Excel 2013
Depth: 0
Translate: f
X-IDCRL_ACCEPTED: t
Connection: Keep-Alive
Host: 192.168.2.252:7080
und nun mein Problem, jetzt kommt

wieder eine GET anfrage, ein bisschen anders, aber auch wieder keinerlei User Infos, aber diesesmal schickt der IIS die Datei zurück
Code:
GET http://192.168.2.252:7080/ID815/test.xls HTTP/1.1
Connection: Keep-Alive
Accept: */*
Accept-Encoding: *
User-Agent: Microsoft Office Excel 2013
X-IDCRL_ACCEPTED: t
Connection: Keep-Alive
Host: 192.168.2.252:7080
und das verstehe ich nicht, was ist an der letzen Anfrage anders als an der vorletzten das der IIS nun ohne User und co doch die Datei schickt?


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:17 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz