cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1810273 ] curl hangs on compliant response to -X HEAD request

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 09 Oct 2007 14:38:03 -0700

Bugs item #1810273, was opened at 2007-10-09 16:40
Message generated for change (Comment added) made by egh
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1810273&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: http
Group: hang
Status: Closed
Resolution: Invalid
Priority: 5
Private: No
Submitted By: Erik Hetzner (egh)
Assigned to: Daniel Stenberg (bagder)
Summary: curl hangs on compliant response to -X HEAD request

Initial Comment:
When receiving a compliant response from -X HEAD request curl hangs due to Content-Length header but no actual content. Correct behavior is observed when using the --head/-I option. Perhaps -X HEAD could use the logic from --head?

----------------------------------------------------------------------

>Comment By: Erik Hetzner (egh)
Date: 2007-10-09 21:38

Message:
Logged In: YES
user_id=67250
Originator: YES

Thank you.

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2007-10-09 20:58

Message:
Logged In: YES
user_id=1110
Originator: NO

This is by design.

You don't change behavior with -X, you just change the request keyword
used in the actual request. All other parts of (lib)curl act as if it had
the original keyword - the CURLOPT_CUSTOMREQUEST option was in fact
modified just hours ago to mention this fact.

Thus, you use --head/-I to do a HEAD that acts like a true HEAD. You use
-X HEAD to do a HEAD that acts like a GET.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1810273&group_id=976
Received on 2007-10-09

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET