cli
cli copied to clipboard
cURL output of HTTPie
I've been a user of HTTPie for a brief bit of time and I haven't seen this feature anywhere, but it might be useful if HTTPie could generate a cURL output of a request. I'm not sure if every particular request could be done in cURL, but this option could be helpful for sharing translatable requests with others that don't have HTTPie.
Yes, this would be a nice thing to have. There are a couple of tools that do something along those lines, but there's no httpie2curl
as such at the moment.
- HAR to HTTPie, cURL, …: https://github.com/Mashape/httpsnippet
- cURL to
x
(but no HTTPie atm): https://shibukawa.github.io/curl_as_dsl/
+1 for this. We love HTTPie but before the rest of the world speaks HTTPie we need to translate them to cURL. And my cURL is getting rustier the longer I use httpie.
+1
:+1:
+1
+1
Ooh, yes please!
+1
+1
+1
+1
Pretty please?
+1
+1
+1
+1
+1
+1
@here please stop adding +1
comments, please use the thumbs up vote on the first post.
This curl command line builder might be useful to anyone looking for an interim solution: https://curlbuilder.com/
Hi guys, I've just created a toy which is able to convert command arguments between cURL and HTTPie :) btw thank @defaude that is who let me know there are some people need this feature.
@dcb9 that looks great!
Links:
- Online tool: http://curl2httpie.online/
- Repo: https://github.com/dcb9/curl2httpie
Screenshot:

Thanks @dcb9, it's a cool and handy tool.
what about merging it in httpie with a --curl
option ?