• ⛓️‍💥@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    18
    ·
    5 days 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
      18
      arrow-down
      9
      ·
      edit-2
      4 days 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.

      Edit: Too bad that all the downvoters didn’t leave a comment. Now I’ll never know if it was M*cr*s*ft employees on their anual works outing, or if you’re mad because I dared to use the W-word :D

  • CodeBlooded@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    3 days ago

    The few times I’ve used Postman, I found myself doing everything I needed in Python shortly afterwards. It’s not cURL, but it could easily be such; I prefer the self organized “text” interface of code.

    • sga@piefed.social
      link
      fedilink
      English
      arrow-up
      15
      arrow-down
      2
      ·
      5 days ago

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

  • Azzu@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    9
    arrow-down
    4
    ·
    4 days 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
        8
        ·
        4 days 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.

      • 𝚝𝚛𝚔@aussie.zone
        link
        fedilink
        English
        arrow-up
        4
        ·
        3 days ago

        Outlook. In HTML format. With a giant signature that includes an embedded image.

        Also the image is a 2400px image that has been resized using width and height attributes.

        • Outlook.

          Thankfully Thunderbird, although most folks here just use the Roundcube web client.

          With a giant signature that includes an embedded image.

          They are auto-generated and enabled for everyone. Typical corporate bullshit I guess.

          Also the image is a 2400px image that has been resized using width and height attributes.

          It’s a portrait (that thankfully has been downsized and compressed so much, that it’s barely recognizable (thank goodness, because it’s a horrific photo)), as well as a photo of my physical signature. Oh god do I hate emails and email signatures. And fuck my company for wanting emails to look “authentic” and including this stupid ass signature.

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

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