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

>Just a little tangent but I think everyone should know cURL… not postman, not httpie or any other more “friendly” tool.

5 years ago I was partner in a startup, we got some money from government right about the time I said I have to take a few months off to do consulting and make some money, my partner said I want to use money to make app I said no for various reasons but he went ahead and did app.

So I was helping them to do the app a couple hours every night - while consulting 8+ hours a day. Anyway the guy making app was using postman, I'd never used postman. He had a problem with the a part of the API not working.

I sent him a curl request to post a two line json document to the api and showed it got the correct response back.

His response - I'm not a curl expert or anything, it would really help me out if you downloaded and installed postman and tried to make it work!

My response - I'm not a curl expert or anything, I showed you it worked in curl because that is basically the default and should establish it is possible to do. You figure out how to do it in your tool.



I've often jokingly said to people "curl or it didn't happen" suggesting they send me a single curl command I can run to re-produce it. However, every time someone's actually provided a curl command over a postman file, it's either showed it's not a bug or I've found the bug within minutes of running the command.

I'm a fan of postman for some things, it sure is easier to modify and re-run http requests over and over in some cases. But on the whole if you're trying to debug an issue, dropping down to curl solves so many problems and is pretty easy to share with anyone no matter their OS for the most part.




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

Search: