cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

RE: HTTP 1.0 HEAD

From: Sonia Subramanian <sonia_subramanian_at_symantec.com>
Date: Wed, 28 Feb 2007 21:06:05 -0800

Thanks, I will try suppressing the host header.

Would there happen to be a programmatic option to do the same?
Thanks,
Sonia.

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Dan Fandrich
Sent: Wednesday, February 28, 2007 8:50 PM
To: libcurl development
Subject: Re: HTTP 1.0 HEAD

On Wed, Feb 28, 2007 at 08:18:33PM -0800, Sonia Subramanian wrote:
> When I set CURL to use HTTP 1.0 and do a header request I got error
400 from an
> HTTP 1.0 server.
>
> I noticed that Host: was appended to the request and I think Host: is
only for
> 1.1 and that is the reason for the failure.

Basically all HTTP/1.0 servers support (if only to ignore) a Host:
header,
and it has existed since before HTTP/1.1 came out. Still, if the server
is improperly set up you might see that result. Have you tried disabling
the Host: header (with the -0 -H Host: options) and seeing if that
solves
the problem? It could also be that the URL you are using doesn't
support
HEAD requests.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address
service
          Let webmasters know that your web site has moved
Received on 2007-03-01

These mail archives are generated by hypermail.

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

File upload with ASP.NET