[Python-bugs-list] [ python-Bugs-525520 ] httplib/HTTPConnetion: wrong HOST header
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 04 Mar 2002 06:16:17 -0800
Bugs item #525520, was opened at 2002-03-04 09: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: Open
Resolution: None
Priority: 5
Submitted By: Andreas Jung (ajung)
Assigned to: Nobody/Anonymous (nobody)
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.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=525520&group_id=5470