This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.k.wong
Recipients steven.k.wong
Date 2008-06-12.20:01:22
SpamBayes Score 0.016043903
Marked as misclassified No
Message-id <1213300884.55.0.795438603527.issue3094@psf.upfronthosting.co.za>
In-reply-to
Content
Communicating over HTTPS at the default port of 443:

import httplib
conn = httplib.HTTPSConnection("my-secure-domain.com")
conn.request("GET", "/")
res = conn.getresponse()

In the current implementation, the Host header sent in the request is:

  Host: my-secure-domain.com:443

The ":443" is unnecessary because the default port of HTTPS is 443. The
attached patch file fixes this so that the Host header sent is simply:

  Host: my-secure-domain.com
History
Date User Action Args
2008-06-12 20:01:24steven.k.wongsetspambayes_score: 0.0160439 -> 0.016043903
recipients: + steven.k.wong
2008-06-12 20:01:24steven.k.wongsetspambayes_score: 0.0160439 -> 0.0160439
messageid: <1213300884.55.0.795438603527.issue3094@psf.upfronthosting.co.za>
2008-06-12 20:01:23steven.k.wonglinkissue3094 messages
2008-06-12 20:01:23steven.k.wongcreate