• brian@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    22 hours ago

    things like oauth, binary websockets, loads of headers, etc all are way worse in curl than others. postman is terrible but there are plenty of other gui/cli options

  • FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    2 days ago

    Or don’t. Alternatives are available - often with nicer interfaces!

    IMO the main reason to use curl is that Chrome lets you copy web requests as a curl command line.

    • python@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      24 hours ago

      It’s gotten even worse when they moved completely to the cloud like a year or two ago! You now can’t use it without making a Postman account, and all your API collections are stored on their servers :) Absolutely no security risks here, API endpoints of in-development systems aren’t a massive attack vector at all !!

      We had to ban the whole tool at my company, the alternative of choice is Bruno because it’s at least completely local when you install it.

        • Victor@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          1 day ago

          What makes you say that though… What specifically about it do you find awful? I prefer xh on the off times I need to test an API, but I remember sometimes it was nice to be able to save API calls as a set, like in the GUI programs.

          • expr@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            23 hours ago

            API calls can be saved as a set with curl too. It’s called folders (or in my case, shell scripts where each call is a bash function).

            • Victor@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              22 hours ago

              Let’s be honest, that’s not really the same thing, is it. Not as easy to work with. It’s been a while since I used a GUI like that but I remember it being much easier to manipulate query parameters and post body etc with a GUI. At least according to me. 🤷‍♂️

          • Lucy :3@feddit.org
            link
            fedilink
            arrow-up
            1
            ·
            1 day ago

            Pretty much everything said on the website… I’m a hardcore cli, max. tui user. Using electron is torture.

            • Victor@lemmy.world
              link
              fedilink
              arrow-up
              2
              ·
              22 hours ago

              😁 I feel you, I’m pretty much the same.

              Would be neat to have a TUI query suite where you could organize an API in a similar way. If anybody knows one, drop it below! 🙏

  • jjjalljs@ttrpg.network
    link
    fedilink
    arrow-up
    1
    ·
    2 days ago

    I offer a compromise of using python’s requests library. It’s got most of the listed benefits, but I like python better than shell scripting.

    It’s weird that I’ve been seeing job posts that list postman as a required skill. It’s not great.

    I did use “Bruno” for a while to have a GUI for making requests. It was fine.