python requests module doesnt work when curl works. What am I doing wrong?
问题 I have a curl request and a similar request using python requests module to a local web service. While the curl request is working correctly, the request made via python isnt working as expected, ie doesn't return a json reponse. Any ideas as why this is happening? With python I still get a 200 response, but getting HTML response text instead of json like in curl and the response is something about invalid session etc. This is the curl request root@weve1:~$ curl -k --GET --data "ajax