Home » HTTP » HTTP_WebDAV_Server » Bug #6853
Content-Length not set on HEAD requests
Details
| Submitted | 2006-02-21 15:42 UTC |
|---|---|
| From | pear dot php dot net at chsc dot dk |
| Assigned | hholzgra |
| Status | Closed |
| Package | HTTP_WebDAV_Server |
| PHP Version | 5.0.5 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2006-02-21 15:42 UTC] pear dot php dot net at chsc dot dk
Description:
------------
In response to a HEAD request, the Content-Length is not specified like it is with GET request.
This causes problems for the Microsoft Data Access Internet Publishing Provider DAV 1.1 client. When copying a file to the WebDAV drive, the client makes first makes a PUT request and then a HEAD request. If this HEAD request does not contain a Content-Length header, an error is displayed, something like "An error occured while copying the selected files" (my Windows is a Danish edition so this is just a translation).
A workaround is to make http_HEAD call $this->http_GET() instead of just $this->GET(). Don't know if this has negative consequenses, though.