cURL / Mailing Lists / curl-users / Single Mail

curl-users

Digest, HEAD, no Content-Length

From: Bob Bob <cflerackers_at_yahoo.com>
Date: Thu, 16 Sep 2004 11:49:37 -0700 (PDT)

Hi,

When using Digest authentication and doing a POST
request with a body that is read from file (read
callback), libcurl first posts a HEAD request to
handle the authentication. This HEAD request does not
contain a Content-Length.
According to RFC2616 (HTTP 1.1):

"The Content-Length entity-header field indicates the
size of the entity-body, in decimal number of OCTETs,
sent to the recipient or, in the case of the HEAD
method, the size of the entity-body that would have
been sent had the request been a GET."

Is this a bug in libcurl or is there a reason to omit
it? The server with which we try to comunicate returns
"411 Length Required".

Best regards,
Chris

                
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
Received on 2004-09-16