|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-3035542 ] POST with --digest should not do an initial, empty POST
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 28 Jul 2010 20:00:58 +0000
Bugs item #3035542, was opened at 2010-07-27 22:32
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
curl -L -i -v --data-binary HelloWorld --digest -u "fred:fred" http://example.com/foo
* Server auth using Digest with user 'fred'
This initial, empty POST only happens when using --digest.
In my case this initial POST is a problem because an empty POST (even unauthenticated) still has an effect on the server -- it creates a document. This is legal http server behavior -- a POST is explicitly not indempotent, i.e. a POST can have side-effects: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html.
So, I think curl should instead behave like wget ("wget -v -d --post-data=HelloWorld --user=fred --password=fred http://example.com/foo") and attempt only the real POST, retrying or sending additional authorization data if it gets a 401 response.
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Message:
Additionally, I claim servers that do *anything* like that on an
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info