Home curl command replication using requests in python
Reply: 0

curl command replication using requests in python

user423
1#
user423 Published in April 22, 2018, 12:37 am

I am trying to replicate the below curl command in python using the requests module. The curl command is as follows:

curl -v -k -H "apikey:INTERNAL_TEST" http://api1/publicapi/macro/<sha256> -X POST

I am able to replicate the whole curl command except the letter '-X' before POST.

Please inform me in case more information is required. Thank you in advance.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.297128 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO