cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Host header question

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 7 Jan 2009 19:33:26 -0800

On Wed, Jan 07, 2009 at 05:27:48PM -0800, Frank BASKER wrote:
> I notice the following difference in behavior between curl 7.19.2 and 7.17.1
>
> With curl 7.19.2
>
> #curl -H "Host:att.com" www.att.com
> <HTML><HEAD>
> <TITLE>Invalid URL</TITLE>
> </HEAD><BODY>
> <H1>Invalid URL</H1>
> The requested URL "&#47;", is invalid.<p>
> Reference&#32;&#35;9&#46;ab6a5640&#46;1231376406&#46;0
> </BODY></HTML>
>
> whereas with curl 7.17.1, the page is retrieved correctly
>
> Is this a bug fix or a bug that got introduced between 7.17.1 and 7.19.2?
> Appreciate your help

I get the identical behaviour on 7.17.1 and 7.19.2, namely the above. If you
correct the line to:

curl -H "Host:www.att.com" www.att.com
then it works on both 7.17.1. This is entirely consistent with att.com and
www.att.com being served by different servers.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-01-08