FunkLoad
FunkLoad copied to clipboard
Unable to add "host" HTTP header
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.