you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 8 months ago (8 children)

Follow redirects? curl -L

still gives HTML

  • source
  • parent
  • hideshow 8 child comments
  • [–] 9 points 8 months ago (7 children)

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

  • source
  • parent
  • hideshow 7 child comments
  • [–] 4 points 8 months ago (5 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

  • source
  • parent
  • hideshow 5 child comments
  • [–] 18 points 8 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

  • source
  • parent
  • [–] 4 points 8 months ago* (2 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"

  • source
  • parent
  • hideshow 2 child comments