mirror of
https://opendev.org/x/pyghmi
synced 2025-01-27 19:37:44 +00:00
Add referer header to https requests
Another firmware change becomes sensitive to the value of referer. This adds the same referer header value that would occur naturally from a browser. Change-Id: I20928bbd88a4df281f9fb4f7cc472419a6059f09
This commit is contained in:
parent
957c6c971e
commit
42b6807840
@ -96,6 +96,8 @@ class IMMClient(object):
|
||||
'SessionTimeout': 60
|
||||
})
|
||||
headers = {'Connection': 'keep-alive',
|
||||
'Referer': 'https://{0}/designs/imm/index.php'.format(
|
||||
self.imm),
|
||||
'Content-Type': 'application/x-www-form-urlencoded'}
|
||||
wc.request('POST', '/data/login', adata, headers)
|
||||
rsp = wc.getresponse()
|
||||
|
Loading…
x
Reference in New Issue
Block a user