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)

1 comment:

  1. Different apparatuses to make a Data Scientist's activity simple are Minitab, XL Miner, Spark and so on. ExcelR Data Science Courses

    ReplyDelete