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 -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -