• Azzu@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    31 minutes 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?

  • chasteinsect@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    4 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.

  • ⛓️‍💥@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    11
    ·
    9 hours ago

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

    • optional@sh.itjust.works
      link
      fedilink
      arrow-up
      7
      arrow-down
      3
      ·
      edit-2
      3 hours ago

      That’s why you shouldn’t use cmd or powershell. That and the fact that you’d have to install W*nd*ws in order to use them.

  • Dr. Moose@lemmy.world
    link
    fedilink
    English
    arrow-up
    20
    arrow-down
    3
    ·
    edit-2
    11 hours 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.

  • Caveman@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    9 hours 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

    • sga@piefed.social
      link
      fedilink
      English
      arrow-up
      14
      arrow-down
      2
      ·
      14 hours ago

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

  • TJA!@sh.itjust.works
    link
    fedilink
    arrow-up
    9
    ·
    18 hours 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