Monday, July 15, 2013

Prevent URL Encoding - Python Requests Library


Use json.dumps in the data parameter.

for example:
r = s.post(url, data=json.dumps(payload), allow_redirects=False, cookies=cookieRequest.cookies)

No comments:

Post a Comment