Paul's Programming Notes     Archive     Feed     Github

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)