[Python-bugs-list] [ python-Bugs-525520 ] httplib/HTTPConnetion: wrong HOST header

noreply@sourceforge.net noreply@sourceforge.net
Fri, 08 Mar 2002 22:08:05 -0800


Bugs item #525520, was opened at 2002-03-04 14:16
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=525520&group_id=5470

Category: Python Library
Group: Python 2.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Andreas Jung (ajung)
Assigned to: Jeremy Hylton (jhylton)
Summary: httplib/HTTPConnetion: wrong HOST header

Initial Comment:
h = httplib.HTTPConnection('blabla.xx.com:5000")
h.request('GET','/',{},{'host':'www.foo.com'})

should produce a HTTP header "HOST: www.foo.com".
Instead HTTPConnection sends two HOST headers:

HOST: blabla.xx.com:5000

and 

HOST:www.foo.com

A host header in the headers dictionary should override
the default host header in any case.



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

>Comment By: Jeremy Hylton (jhylton)
Date: 2002-03-09 06:08

Message:
Logged In: YES 
user_id=31392

Fixed in rev 1.46 of httplib.py


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

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=525520&group_id=5470