I am having an issue with python-requests and doing some searching I have not been able to find a solution. I have a web handler that accepts a few parameters which include the username and password. When requests goes to make the request.
self._get_query() returns {'username': 'test', 'password', 'test', 'check', 'True'}
r = requests.get(self._site, params=self._get_query())
r.text = "No username or password provided"
Doing some inspection on on run I see that my username and password parameters are being excluded from the dict.
r.url = r'http://localhost/test.ashx?check=True'
I'm not sure why this is happening?
P.S. The site does not use basic authentication or anything where requests.get(auth=<something>)
would help. The username and password parameter is passed to the ashx for a back-end login.