cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Host header question

From: Frank BASKER <dearbasker_at_yahoo.com>
Date: Wed, 7 Jan 2009 22:20:45 -0800 (PST)

If this is a bug fix, I'd like to get some information about the original bug
Can anyone point me to the bug report?

Thanks

________________________________
From: Dan Fandrich <dan_at_coneharvesters.com>
To: curl-users_at_cool.haxx.se
Sent: Wednesday, January 7, 2009 8:33:26 PM
Subject: Re: Host header question

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 "/", is invalid.<p>
> Reference #9.ab6a5640.1231376406.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
      

-------------------------------------------------------------------
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