this post was submitted on 10 Mar 2026
209 points (99.5% liked)

Programmer Humor

31948 readers
404 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] RustyNova@lemmy.world 77 points 3 months ago (3 children)
[–] rovingnothing29@lemmy.world 30 points 3 months ago (2 children)

-Curl "https://justuse.org/curl/"

-Returns a ton of html stuff

Can't even comply with their own argument.

[–] RustyNova@lemmy.world 13 points 3 months ago (1 children)
[–] Skullgrid@lemmy.world 2 points 3 months ago (1 children)

Follow redirects? curl -L

still gives HTML

[–] RustyNova@lemmy.world 8 points 3 months ago (2 children)

Yeah? That's what the response is. What do you expect?

[–] scrubbles@poptalk.scrubbles.tech 4 points 3 months ago (4 children)

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

[–] floquant@lemmy.dbzer0.com 18 points 3 months ago

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

[–] RustyNova@lemmy.world 4 points 3 months ago* (last edited 3 months ago) (1 children)

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"

[–] HexaBack@lemmy.blahaj.zone 1 points 3 months ago (1 children)

librewolf is overkill I was expecting to hear something like links2

[–] RustyNova@lemmy.world 1 points 3 months ago

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

[–] Skullgrid@lemmy.world 2 points 3 months ago

I tried the suggestion and saw that the original complaint persisted.

I didn't think anything to be honest.

[–] Skullgrid@lemmy.world 3 points 3 months ago

I tried the suggestion and saw that the original complaint persisted.

I didn't expect anything to be honest.

[–] nullPointer@programming.dev 12 points 3 months ago

here ya go.

curl cheat.sh/curl

[–] mesamunefire@piefed.social 5 points 3 months ago* (last edited 3 months ago)

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/

[–] Hazzard@lemmy.zip 2 points 3 months ago

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.