Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Am I crazy for using curl and editing the shell cmdline with vim when I need to work with lots of headers?


No, but unless portability is a concern or you're massively familiar with curl, you might want to consider xh. It's much more intuitive.

https://github.com/ducaale/xh


I’m not a curl pro but devtools ‘copy as curl’ gets me 95% there most of the time.

That said, thanks! Didn’t know about this. Definitely adding to the toolbox.


xh is based on HTTPie CLI, which I would recommend over xh since it has better docs and more features.


No, I use curl similarly and a lot. Where I find Postman convenient is when using it against services that use OAuth2. You authenticate once, it fetches the token and you are good to go. Could I script this with curl? Sure. Do I want to? Nah.


This can get old fast when debugging things and when piping through jless or something. Having a nice app that stores the request make it easier to come back too after a few days away. But Insomnia and others went wayyyyy overboard with all the sub sub sub projects. I'd like to have something in the middle.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: