FunkLoad icon indicating copy to clipboard operation
FunkLoad copied to clipboard

Unable to add "host" HTTP header

Open ncharlot opened this issue 12 years ago • 0 comments

Hi,

In a staging process, we would like to test a different host that one registered in DNS.

Adding host via addHeader() method has no effect since _browser adds already host...

Example:

self.debugHeaders(debug_headers=True) 
self.setHeader('host', 'www.myhost.tld')
self.get(server_url+'/')

Displays:

Putting header -- Host: www.realhost.tld
Putting header -- User-Agent: FunkLoad/1.16.1
Putting header -- host: www.myhost.tld

I think it's a common issue.

Thx for your work.

ncharlot avatar Jun 26 '12 18:06 ncharlot