• Skullgrid
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        1 month ago

        Follow redirects? curl -L

        still gives HTML

        • RustyNova
          link
          fedilink
          arrow-up
          11
          arrow-down
          1
          ·
          1 month ago

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

          • Scrubbles@poptalk.scrubbles.tech
            link
            fedilink
            English
            arrow-up
            4
            ·
            1 month ago

            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
              link
              fedilink
              arrow-up
              20
              arrow-down
              1
              ·
              1 month 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
              link
              fedilink
              arrow-up
              4
              ·
              1 month ago

              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”

                • RustyNova
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  1 month 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
              link
              fedilink
              arrow-up
              2
              ·
              1 month ago

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

              I didn’t think anything to be honest.

          • Skullgrid
            link
            fedilink
            arrow-up
            3
            ·
            1 month ago

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

            I didn’t expect anything to be honest.