Live data from Hacker News

Just Use Curl

justuse.org

21–30 of 154 posts

Re: Just Use Curl

#23
Using -X POST is often wrong as it "changes the actual method string in the HTTP request [... and] does not change behavior accordingly" (Stenberg, 2015).

Although, it is correct for the article's mention of "Send POST requests"... just that typically people don't send POST requests out of the blue with no data.

Re: Just Use Curl

#24

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?

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

#25

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?

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

#26
post #9

There's also hurl: https://hurl.dev You define all your requests in a plaintext format and can inject variables etc... plus the name is kinda funny.

Basically a shell script with a curl invocation in it, except you need to install extra software to execute it. Misses the point of the article.

Re: Just Use Curl

#27
post #6

> It's already on your machine, dipshit Does anyone actually enjoy this uhm style of writing?

I like reading it sometimes. It doesn't make me more likely to do what it suggests though, if anything potentially less likely. Like a "Haha, what a guy. Now let's get on with my day" kind of vibe.

Re: Just Use Curl

#28

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?

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

#29
post #10
post #6

> It's already on your machine, dipshit Does anyone actually enjoy this uhm style of writing?

I like it. It makes me smile. Don't take it personally.

Ditto, enjoy the catharsis. Good advice to not take it personally, I'll try to give a less aggressive point of view. All of this has come to mind [but not repeated out of kindness or laziness, whichever].

So, to start: someone wants me to install Postman/similar and pay real money to share and make a request? Absolutely not. I can read the spec from Swagger, or whatever, too... and write down what was useful [for others]. We all have cURL or some version of Python.

Surely a few phrases of text worth making plans to save, and paying for [at least twice, you to research and them to store], are worth putting into source control. It's free, even gifts dividends. How? Automation that works faster than a human pushing a button. Or creates more buttons!

Post reply on HN