PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTTP » HTTP_WebDAV_Server » Bug #6853

Content-Length not set on HEAD requests

Details

Submitted2006-02-21 15:42 UTC
Frompear dot php dot net at chsc dot dk
Assignedhholzgra
StatusClosed
PackageHTTP_WebDAV_Server
PHP Version5.0.5
OSLinux
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.