cli icon indicating copy to clipboard operation
cli copied to clipboard

cURL output of HTTPie

Open ryanmcdermott opened this issue 9 years ago • 24 comments

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.

ryanmcdermott avatar Mar 23 '15 00:03 ryanmcdermott

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/

jkbrzt avatar Mar 25 '15 21:03 jkbrzt

+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.

dzimine avatar Aug 27 '15 21:08 dzimine

+1

sanrodari avatar Nov 22 '15 14:11 sanrodari

:+1:

giodamelio avatar Jan 02 '16 00:01 giodamelio

+1

rajadain avatar Jan 04 '16 16:01 rajadain

+1

darshan-craft avatar Jan 06 '16 22:01 darshan-craft

Ooh, yes please!

tspike avatar Jan 12 '16 20:01 tspike

+1

Mgutjahr avatar Jun 21 '16 10:06 Mgutjahr

+1

chillenious avatar Feb 03 '17 22:02 chillenious

+1

iannickb avatar Feb 21 '17 01:02 iannickb

+1

mattconzen avatar Feb 22 '17 22:02 mattconzen

Pretty please?

akrikos avatar May 12 '17 17:05 akrikos

+1

cchacin avatar Jun 08 '17 07:06 cchacin

+1

Neonox31 avatar Jul 20 '17 09:07 Neonox31

+1

daniel79 avatar Aug 09 '17 10:08 daniel79

+1

xmavrck avatar Aug 14 '17 14:08 xmavrck

+1

chalasr avatar Oct 27 '17 07:10 chalasr

+1

epayet avatar Nov 10 '17 16:11 epayet

@here please stop adding +1 comments, please use the thumbs up vote on the first post.

kalbasit avatar Nov 10 '17 17:11 kalbasit

This curl command line builder might be useful to anyone looking for an interim solution: https://curlbuilder.com/

naartjie avatar Feb 21 '18 16:02 naartjie

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 avatar Apr 16 '18 14:04 dcb9

@dcb9 that looks great!

Links:

  • Online tool: http://curl2httpie.online/
  • Repo: https://github.com/dcb9/curl2httpie

Screenshot:

screen shot 2018-04-16 at 11 43 43

jkbrzt avatar Apr 16 '18 16:04 jkbrzt

Thanks @dcb9, it's a cool and handy tool.

naartjie avatar Apr 16 '18 16:04 naartjie

what about merging it in httpie with a --curl option ?

deronnax avatar Nov 07 '19 09:11 deronnax