cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: PUT with digest auth, sends HEAD #1054859

From: Jamie Lokier <jamie_at_shareable.org>
Date: Tue, 2 Nov 2004 23:42:37 +0000

Daniel Stenberg wrote:
> What would you say if we did a HEAD on the parent dir instead?

By the way, HTTP doesn't have the concept of dirs.

"http://example.org/path/" is a perfectly valid resource to POST or PUT to.
It even works on some servers.

Also, HEAD is not guaranteed to work or give the same auth response as
POST. For one thing, POSTing may require authentication whereas just
reading (i.e. GET and HEAD) might be permitted without authentication.

Perhaps you could avoid these issues by creating an "--auth-try-head"
option and let the users decide what to do?

-- Jamie
Received on 2004-11-03