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 23:20:14 -0800 (PST)

I am not trying to trick the server
Just got these parameters from Webkit after trying to reload a page that got redirected (CURLOPT_FOLLOW_LOCATION=0)

1. Load att.com
url=att.com and host header=att.com
2. att.com gets redirected to www.att.com
url=www.att.com and host header=www.att.com

3. Reload
url=www.att.com and host header=att.com
This fails with curl 7.19.2

I assume this is a Webkit bug that was not visible with older versions of curl as host header didn't matter

________________________________
From: Daniel Stenberg <daniel_at_haxx.se>
To: the curl tool <curl-users_at_cool.haxx.se>
Sent: Wednesday, January 7, 2009 11:31:13 PM
Subject: Re: Host header question

On Wed, 7 Jan 2009, Frank BASKER wrote:

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

Can you please tell us why you think this is a curl bug in the first place? Clearly curl sends a fine request to a server, but the modified Host: header seems to trick the other end and it responds to say that the request is bad.

7.17.1 is rather ancient by now and I haven't actually bothered to compare exactly how that behaves nor have I scanned the changelog for this since I think it is irrelevant. I don't see any error in the current behavior!

-- 
/ daniel.haxx.se
-------------------------------------------------------------------
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