• southernbrewer@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 hours ago

    IIRC postman has gRPC support, unlike httpie, but it’s also so awful. If you use the gRPC support, switch to Kreya instead

  • ⛓️‍💥@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    20
    ·
    1 day ago

    Command line escaping is an annoying son of a bitch and different rules apply depending if you’re using bash, cmd, powershell.

  • Azzu@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    8
    arrow-down
    5
    ·
    edit-2
    18 hours ago

    This is such a weird article. Electron is not for making http requests, it’s for rendering web pages. Nothing within curl can render web pages. I’m not saying you should be using electron necessarily, but this is just so obviously wrong, what is the author thinking?

    And (almost) any programming language has a built-in primitive for making http requests (possibly even using libcurl internally), why would I switch to a command line call if I can just do the http call directly with that primitive?

      • dubyakay@lemmy.ca
        link
        fedilink
        arrow-up
        7
        ·
        16 hours ago

        Postman has Collection Runner tho, which is useful for people that like to dick around on a GUI and get their data harvested and used for AI training instead of writing their own script in Python.

  • Dr. Moose@lemmy.world
    link
    fedilink
    English
    arrow-up
    26
    arrow-down
    4
    ·
    edit-2
    1 day ago

    Generally not a big fan of this type of writing especially when it’s so wrong.

    I’m an old software dev who grew up with curl but I wouldn’t recommend it to anyone new. It’s extremely dated UX that takes a long time to figure all of the quirks out. You will fail thousand times over and is a http client CLI really worth days of your time learning?

    Libcurl itself is brilliant but there are much better front ends for it like hurl or alternatives like httpie - use those instead.

    • jenesaisquoi@feddit.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      29 minutes ago

      Yes it is worth it, because it is available everywhere, and will still be around in 15 years. Learn it once, use it “forever”, everywhere. It’s the same with learning to use sed, awk, etc. They’ve been around for 50 years and will most likely be for another 50.

      • Dr. Moose@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        21 minutes ago

        It’s just a http client CLI not a programming language. It’s not that difficult to switch. In fact I use at least 5 different ones myself.

    • RheumatoidArthritis@mander.xyz
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

      Same here, though last time I used a nice frontend was in 2010s, it stopped being developed like all these smaller projects finally end up, and I’m back to using curl. Perhaps it’s time to try again, httpie has been around for a while so maybe it’s here to stay

  • chasteinsect@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    21 hours ago

    It’s been awhile since I had to deal with web requests. Back then I used Postman (back when I still used Windows). Now I try to always get by using the simplest open source tools for the job so thanks for sharing, will try it out.

    I knew of curl but always thought of it as a tool to play around when doing simple requests, never knew people go so far with it.

    • sga@piefed.social
      link
      fedilink
      English
      arrow-up
      19
      arrow-down
      2
      ·
      1 day ago

      they are different things, wget and curl do not have many overlapping use cases other than downloading stuff over http

  • Caveman@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    1 day ago

    I’m very early stages on making my own TUI for http requests that’s shortcut based. Idea is to use Jetbrains format http files. Folders for projects, sidebar for requests etc.

    Supports environments and I’m hoping I can set up the main screen to use Vim.

    It’s born out of postman hate mostly. It’s just so bloated

  • TJA!@sh.itjust.works
    link
    fedilink
    arrow-up
    9
    ·
    1 day ago

    That’s great. I like a GUI. I also do not like whatever postman is. So I have to suffer until I find something that works for me