I think they’re point is that curl is great but then you have to have a way to render it to know if it’s correct. With apis you can use jq, but yeah a dump of html isn’t really useful to humans
Yeah but we’re talking about API tools, not web browsers. People are using postman to see JSON, XML, or whatever horrible format the devs on the other side chose to use, not to render HTML graphically. If you query an HTML page using curl, you should get the HTML back, I don’t see what’s the problem
As much as I think that’s correct a lot of the time, something like Bruno has value too. Implementing complicated auth for an annoying service once and reusing it across several pre-written requests, useful features like a GUI and history to see prior responses from an endpoint, being able to share the “collection” in the repo as examples/developer tools that’s maintained alongside the code, writing docs with each request to explain its usage, this stuff does add value that isn’t trivial to do with curl.
Just use curl dammit!
The deeper I get into Linux, the more I feel exactly this about most software in general. We just love reinventing the wheel, don’t we?
-Curl “https://justuse.org/curl/”
-Returns a ton of html stuff
Can’t even comply with their own argument.
still gives HTML
Yeah? That’s what the response is. What do you expect?
I think they’re point is that curl is great but then you have to have a way to render it to know if it’s correct. With apis you can use jq, but yeah a dump of html isn’t really useful to humans
Yeah but we’re talking about API tools, not web browsers. People are using postman to see JSON, XML, or whatever horrible format the devs on the other side chose to use, not to render HTML graphically. If you query an HTML page using curl, you should get the HTML back, I don’t see what’s the problem
Oh. Fair enough. The intent for curl is definitely to display the HTML as it’s whole point.
Anyways.
curl -L -o “/tmp/your.html” https://justuse.org/curl && librewolf “/tmp/your.html”
librewolf is overkill I was expecting to hear something like links2
Yeah, but It’s more that you probably already have a browser open, so it’s better to just reuse the resources
Also, just replace it with your favourite browser. It should also just work
I tried the suggestion and saw that the original complaint persisted.
I didn’t think anything to be honest.
deleted by creator
I tried the suggestion and saw that the original complaint persisted.
I didn’t expect anything to be honest.
here ya go.
curl cheat.sh/curlAs much as I think that’s correct a lot of the time, something like Bruno has value too. Implementing complicated auth for an annoying service once and reusing it across several pre-written requests, useful features like a GUI and history to see prior responses from an endpoint, being able to share the “collection” in the repo as examples/developer tools that’s maintained alongside the code, writing docs with each request to explain its usage, this stuff does add value that isn’t trivial to do with curl.
It would be fun to create a CURL converter. Just simple aliases or conversion tool.
I just looked it up, looks like there may be something like it here: https://github.com/christianhelle/curlgenerator
I like the look of this: https://www.createopenapi.com/