I am trying to figure out what I\'m doing wrong here, but I keep getting lost...
In python 2.7, I\'m running following code:
>>> import requ
The User-Agent, and also other header elements, could be causing your problem.
When I came accross this error I watched a regular request made by a browser using Wireshark, and it turned out there were things other than just the User-Agent in the header which the server expected to be there.
After emulating the header sent by the browser in python requests, the server stopped throwing errors.