how to make a `curl -ki` with python requests library -


my working curl follows

curl -ki 'https://host/api/getdata' -h 'authorization: app-auth "<token>"' -h 'content-type: application/json' 

but doesn't work follows:

curl -xget 'https://host/api/getdata' -h 'authorization: app-auth "<token>"' -h 'content-type: application/json' 

i cannot replicate python requests library, appreciated.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

nginx - phpPgAdmin - log in works but I have to login again after clicking on any links -