I am trying to automate a web page request by using mechanize in python.
When I add custom headers like
X-Session= 'abc'
and
X-Auth='123'
by using addheader function.
object=mechanize.Browser()
object.addheaders=[('X-Session','abc'),('X-Auth','123')]
It changes those headers to X-session
and X-auth
.
I believe due to that the server is not able to authenticate me.
Can anybody help how to maintain the case?
Thanks.