News for hackers. Stuff that matters.
Re:Just Use Curl by deafpolygon on Tuesday October 21, 2025 @09:06AM (#45655275)
I've been using curl, like forever. I don't understand the preoccupation for using postman, et. al. -- why pay for something that literally requires a little bit of light RTFM?
Re:Just Use Curl by pjc50 on Tuesday October 21, 2025 @09:13AM (#45655344)
https://news.ycombinator.com/item?id=9224 "you can already build such a system yourself quite trivially by getting an FTP account, mounting it locally with curlftpfs, and then using SVN or CVS on the mounted filesystem. From Windows or Mac, this FTP account could be accessed through built-in software." -- on why Dropbox should not exist.

People absolutely will pay for software rather than reading or thinking, if it makes doing the work easier. You may have heard of this thing called chatgpt.

(not being a web developer, I've only lightly used Postman, and it is definitely handy for things like authentication. Especially once you touch OAuth. But I uninstalled it once they went unnecessarily cloud)

Re:Just Use Curl by holletron on Tuesday October 21, 2025 @09:15AM (#45655368)
Because it's convenient. I use curl often, but admit to using Bruno even more often. And yes, I could have some organized scripts or something, but for playing with various APIs daily, sometimes importing whole .json collections, or even setting up credentials in one place and reusing them across all the requests from a collection - that's just fast, easy and convenient. Same for responses - yes, I could work with jq and analyze in the console, but often I don't really know what exactly I'm looking for, so it's just easier to have it visually parsed and click through items
Re:Just Use Curl by Xenoamorphous on Tuesday October 21, 2025 @09:09AM (#45655307)
I use both. It's quite convenient to have all the collections available and just send the request with a couple of clicks.
Re:Just Use Curl by CaptainOfCoit on Tuesday October 21, 2025 @09:12AM (#45655342)
For repeated commands, my projects have a Make/Just file that has cURL commands I wanna validate. Sometimes I even load JSON from a tests/fixtures/*.json file, that also can be reused for other non-E2E tests.

Not sure how some developers could be so allergic to the terminal, don't you already spend a lot of time there?

Re:Just Use Curl by Xenoamorphous on Tuesday October 21, 2025 @09:27AM (#45655518)
> Not sure how some developers could be so allergic to the terminal, don't you already spend a lot of time there?

Who says I'm allergic to the terminal? I already stated that I use curl.

I could also ask why are some developers so allergic to any kind of UI. And they're very vocal about it. Just use whatever you want.

Re:Just Use Curl by CaptainOfCoit on Tuesday October 21, 2025 @09:49AM (#45655773)
> Who says I'm allergic to the terminal? I already stated that I use curl.

Preferring "a couple of clicks" vs "run one command" seems to indicate so, otherwise I'm not sure why'd someone would prefer the former instead of the latter.

Re:Just Use Curl by Xenoamorphous on Tuesday October 21, 2025 @10:10AM (#45656043)
I have dozens of collections with hundreds of requests, most sending complex payloads, all perfectly organised hierarchically. I'd rather use a collapsible UI for that, if you prefer to have hundreds of scripts in folders that's fine too.

Actually I don't even create those collections, we have OpenAPI/Swagger docs for all of our APIs and I just import them with a couple of clicks (which I'm sure there's a way to do with curl).

For the odd requests, and sharing requests with others? I use curl, no problem. I actually think I know it pretty well and very rarely need to look up any docs for it.

Re:Just Use Curl by CaptainOfCoit on Tuesday October 21, 2025 @10:51AM (#45656557)
> I'd rather use a collapsible UI for that, if you prefer to have hundreds of scripts in folders that's fine too.

No, I don't (what a shitty strawman), I create abstractions then, like any other project. Surely you don't have hundreds of completely original and bespoke requests? Previously I've handled thousands of requests by having a .csv to load from.

Re:Just Use Curl by Xenoamorphous on Tuesday October 21, 2025 @12:54PM (#45658120)
> Surely you don't have hundreds of completely original and bespoke requests?

Absolutely I do. It’s not like a few hundred endpoints is out of the ordinary in any mid sized company.

I can go an edit any of the requests with autoformatting, highlighting and whatnot.

As I say, you can keep your csv and abstractions, not trying to convince you that you should switch from whatever works for you.

Re:Just Use Curl by troupo on Tuesday October 21, 2025 @09:25AM (#45655491)
Even those who spend a lot of time in the terminal are capable of recognizing its limitations.
Re:Just Use Curl by skydhash on Tuesday October 21, 2025 @09:20AM (#45655427)
Maybe on work computer. But I can’t bother with installing, updating, and running these kinds of bloats on my personal computers. Only two software stay open for longer than a few hours: Emacs and firefox.

The thing with simple tools is that bootstrapping is easy and versatile.

Re:Just Use Curl by eloisius on Tuesday October 21, 2025 @09:14AM (#45655358)
I’m also a CLI old timer, but there’s undeniable utility in having a Postman-like collection to test drive a mobile app API. You can save state from responses and use it in subsequent requests. E.g. log in, save the access token, create a post, save the id, post a comment under the post using the id. It’s all very useful, to say nothing of the fact that you can give said collection to non-technical stakeholders and they can solve a lot of their own problems without going to get one of the engineers to Do A Command Line(tm).

All that said, I wouldn’t touch Postman. Last time I needed something to fit this bill I looked around to find the open source equivalent and found Bruno.

Re:Just Use Curl by hi41 on Tuesday October 21, 2025 @09:14AM (#45655360)
I am new to curl. We use secure connection to Visa and Maactercard API. We have the certificate in a jks file.

Is there a way to send the json request that one sends in Postman but in curl while also using the jks file?

Similarly, we use SoapUI to send XML requests. Is there a way to send those XML requests using curl while also using the jks file?

Greatly appreciate your help.

Re:Just Use Curl by cluckindan on Tuesday October 21, 2025 @09:25AM (#45655496)
Come on. One google search for curl jks and the first StackOverflow result has what you are looking for.
Re:Just Use Curl by cluckindan on Tuesday October 21, 2025 @09:12AM (#45655336)
Some people like to think about the problems related to the actual work instead of looking up CLI tool manpages when they need to do something once in a blue moon.

I use curl liberally and also tend to create scripts around it to perform common tasks, but I still get why someone would prefer a GUI.

Re:Just Use Curl by qsort on Tuesday October 21, 2025 @09:12AM (#45655335)
If you're doing a lot of requests for testing or some other purpose I could see an argument for a graphical interface. Curl is a masterpiece but it's not that simple to use. But again, we're in $current_year and I'd be surprised if "hey Claude, can you cook up a curl request to do this and that" doesn't work.
Re:Just Use Curl by andoando on Tuesday October 21, 2025 @09:34AM (#45655613)
I use Postman a lot but this article was rather convincing.

Just save your requests in separate script and organize them.

And now you can run them from anywhere, including other scripts

Re:Just Use Curl by CaptainOfCoit on Tuesday October 21, 2025 @09:14AM (#45655350)
Even simpler and free: `tldr curl` in your terminal gives you like 80% of what you need for day to day requests, `man curl` gives you 100% of what you need.
Re:Just Use Curl by blueflow on Tuesday October 21, 2025 @09:16AM (#45655378)
> ... literally requires a little bit of light RTFM?

This is why, people do not want to bother with the docs.

Re:Just Use Curl by nucleardog on Tuesday October 21, 2025 @09:32AM (#45655582)
cURL is an amazing tool, but it's more "HTTP client" and less "full blown API client".

The page even sort of acknowledges this... saying you manage your environments with environment variables. It doesn't mentioned how to extract data from the response, just jq for syntax highlighting. No explanation of combining these two into any sort of cohesive setup for managing data through flows of multiple requests. No mention anywhere on the page of working with an OpenAPI spec... many of the tools provide easy ways to import requests instead of manually reentering/rebuilding something that's already in a computer-readable format.

So the tl;dr here is "use cURL, and then rebuild the rest of the functionality in bash scripts you idiot".

I went down this path of my own accord when Insomnia was no longer an option. I very quickly found myself spending more time managing bash spaghetti than actually using tools to accomplish my goals.

That's why I use a full blown dedicated API client instead of a HTTP client. (Not Postman though. Never Postman.)

Re:Just Use Curl by antisthenes on Tuesday October 21, 2025 @09:19AM (#45655417)
Using curl, how would I send a collection of frequently used requests to a coworker?

Plain text file?

Re:Just Use Curl by andoando on Tuesday October 21, 2025 @09:34AM (#45655626)
Also mentioned in the article. Put it in scripts and pit them on git, and you have version control now too.

users/create.sh, users/delete.sh, etc

Re:Just Use Curl by ebiester on Tuesday October 21, 2025 @09:54AM (#45655850)
They're put in git. You treat it like any other source. You might even have them as a set of shell scripts.
Re:Just Use Curl by skydhash on Tuesday October 21, 2025 @09:25AM (#45655492)
> Plain text file?

Works everywhere.

It could be a script or a markdown with code blocks. I believe there’s wrapper with a more codified formats like .http.

Re:Just Use Curl by deafpolygon on Tuesday October 21, 2025 @09:50AM (#45655782)
Yes, plain text. Copy & paste has worked for a very long time.
Re:Just Use Curl by troupo on Tuesday October 21, 2025 @09:17AM (#45655389)
postman used to be a relatively lightweight client with a tolerable UI to quickly set up and test what you needed.

Then it turned into a monstorsity.