Set Host-header when using Python and urllib2

I’m using my own resolver and would like to use urllib2 to just connect to the IP (no resolving in urllib2) and I would like set the HTTP Host-header myself.

source:http://stackoverflow.com/questions/3520966/set-host-header-when-using-python-and-urllib2

发表评论

电子邮件地址不会被公开。 必填项已用*标注