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)

2 comments:

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

    ReplyDelete
  2. Nice post. Thanks for sharing! I want people to know just how good this information is in your blog. It’s interesting content and Great work.
    machine learning training in hyderabad
    data science course in hyderabad
    business analytics courses in hyderabad

    ReplyDelete