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

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -