This doesn't cut it
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmings.world to Programmer Humor@programming.dev · 10 days ago

Just use cURL

justuse.org

external-link
message-square
60
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
263
external-link

Just use cURL

justuse.org

cm0002@lemmings.world to Programmer Humor@programming.dev · 10 days ago
message-square
60
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
alert-triangle
You must log in or register to comment.
  • kambusha@sh.itjust.works
    link
    fedilink
    arrow-up
    58
    ·
    10 days ago

    More coming soon. Or not. I don’t owe you shit.

    • Bazoogle@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      8 days ago

      I saw that on the main page. That was the best line

  • Ethanol@pawb.social
    link
    fedilink
    English
    arrow-up
    32
    ·
    10 days ago

    That was a fun read! I don’t even know what Postman is but I do like curl :P

    • Frezik@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      22
      ·
      10 days ago

      Be glad you don’t know what Postman is.

      The only reason I bother is because some PMs want to use it.

      • chocrates@piefed.world
        link
        fedilink
        English
        arrow-up
        10
        ·
        9 days ago

        Look at Bruno. Its open source, though I did get pay walled the other day and it pissed me off.

        • mmmac@lemmy.zip
          link
          fedilink
          arrow-up
          3
          ·
          9 days ago

          Check out yaak, also open source no paywall. Built on Tauri so not a dumb electron app

          • orygin@piefed.social
            link
            fedilink
            English
            arrow-up
            3
            ·
            9 days ago

            Yaak has a commercial paywall if you use the pre-built binaries. You can easily build it yourself without licensing tho

        • FishFace@piefed.social
          link
          fedilink
          English
          arrow-up
          3
          ·
          9 days ago

          I thought this article was complaining about something that no-one used, but here you are recommending alternatives… alternatives that are not curl

        • codemankey@programming.dev
          link
          fedilink
          English
          arrow-up
          2
          ·
          9 days ago

          Still has an open source version tho: https://www.usebruno.com/pricing

  • Dr. Moose@lemmy.world
    link
    fedilink
    English
    arrow-up
    30
    arrow-down
    5
    ·
    edit-2
    9 days 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.

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

      Wow the httpie site is terrible

      • RheumatoidArthritis@mander.xyz
        link
        fedilink
        arrow-up
        3
        ·
        9 days ago

        Hahahahaha you’re not wrong

        Screenshot_20251022-080824_Cromite

    • jenesaisquoi@feddit.org
      link
      fedilink
      English
      arrow-up
      5
      ·
      8 days 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
        2
        ·
        8 days 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.

        • jenesaisquoi@feddit.org
          link
          fedilink
          English
          arrow-up
          1
          ·
          8 days ago

          All the more reason to learn and use curl

          • Dr. Moose@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            8 days ago

            Yes after you learn all better clients first, sure.

            • jenesaisquoi@feddit.org
              link
              fedilink
              English
              arrow-up
              1
              ·
              8 days ago

              Which do you consider better?

              • luciferofastora@feddit.org
                link
                fedilink
                arrow-up
                2
                ·
                8 days ago

                …probably the ones they mentioned in the root comment?

    • ohlaph@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      8 days ago

      Hurl looks similar to how intellij integrates their http requests feature.

    • RheumatoidArthritis@mander.xyz
      link
      fedilink
      arrow-up
      1
      ·
      9 days 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

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

      • BatmanAoD@programming.dev
        link
        fedilink
        arrow-up
        8
        ·
        9 days ago

        String escaping sucks in bash and other posix-style shells too, though.

        • optional@sh.itjust.works
          link
          fedilink
          arrow-up
          2
          ·
          9 days ago

          “Tru dat\!”

        • FuckBigTech347@lemmygrad.ml
          link
          fedilink
          arrow-up
          1
          arrow-down
          1
          ·
          8 days ago

          I rather deal with that than any Micro$oft® Garbage®.

      • AlphaAutist@lemmy.world
        link
        fedilink
        arrow-up
        7
        arrow-down
        1
        ·
        8 days ago

        I hate windows/microsoft as much as anyone and i hate to say this but powershell isn’t that bad and can be installed on Linux and MacOS

        • jenesaisquoi@feddit.org
          link
          fedilink
          English
          arrow-up
          6
          ·
          edit-2
          8 days ago

          Yeah but why would you, they already have proper shells

        • optional@sh.itjust.works
          link
          fedilink
          arrow-up
          5
          ·
          8 days ago

          Thanks, I didn’t know that. And now I wish I could forget it again.

      • dariusj18@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        8 days ago

        Command line escaping is not a solely cmd or powershell thing to deal with. But also,

        https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-linux?view=powershell-7.5

        • optional@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          8 days ago

          Thanks, I didn’t know that. And now I wish I could forget it again.

  • flamingos-cant (hopepunk arc)@feddit.uk
    link
    fedilink
    English
    arrow-up
    19
    arrow-down
    1
    ·
    10 days ago

    You can pry wget from my cold, dead hands.

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

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

  • Andromxda 🇺🇦🇵🇸🇹🇼@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    11
    ·
    10 days ago

    This is beautiful. I’ma send this to my coworkers.

    • QuazarOmega@lemy.lol
      link
      fedilink
      arrow-up
      3
      ·
      10 days ago

      With none other than…

      • 𝚝𝚛𝚔@aussie.zone
        link
        fedilink
        English
        arrow-up
        4
        ·
        8 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.

        • Andromxda 🇺🇦🇵🇸🇹🇼@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          1
          ·
          8 days ago

          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.

        • QuazarOmega@lemy.lol
          link
          fedilink
          arrow-up
          1
          ·
          8 days ago

          Oh lord, don’t tell me it’s also laid out with tables, too? 😭

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

    • PortNull@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      7
      ·
      10 days ago

      Httpie desktop? Bruno https://www.usebruno.com/?

      • TJA!@sh.itjust.works
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        9 days ago

        Bruno Looks interesting. I think the last time I read about it it was very new, I might need to give it another try. I hope it will not end up like postman or insomnia.

        The first thing I see when opening the httpie app website is a “we now have ai” pop-up. So probably not that one.

        • PortNull@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          1
          ·
          9 days ago

          Ah has ai made it to httpie now too? Shame.

  • RheumatoidArthritis@mander.xyz
    link
    fedilink
    arrow-up
    9
    ·
    9 days ago

    As a daily curl user, this made me interested in trying out postman.

    • codemankey@programming.dev
      link
      fedilink
      English
      arrow-up
      12
      ·
      9 days ago

      There are less bloated alternatives I prefer. Like Bruno, which is easy/easier to version control.

      • myfavouritename@beehaw.org
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 days ago

        Thanks for mentioning Bruno! It looks awesome. I haven’t tried it out, but I’m going to give it a shot today.

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

        I just downloaded it, there’s even an appimage 😍

    • jenesaisquoi@feddit.org
      link
      fedilink
      English
      arrow-up
      3
      ·
      8 days ago

      It will upload your credentials to the cLoUd and ask you for payment to do basic things. Completely enshittified.

    • dariusj18@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      8 days ago

      I was pretty bullish on insomnia until it enshitified

  • PortNull@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    7
    ·
    10 days ago

    Somewhere in between is https://hurl.dev/index.html

  • Frezik@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    6
    ·
    10 days ago

    Is there one of these for shell scripts over CI/CD frameworks?

  • Azzu@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    10
    arrow-down
    5
    ·
    edit-2
    9 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?

    • MinFapper@startrek.website
      link
      fedilink
      English
      arrow-up
      23
      ·
      9 days ago

      I think it’s a jab at Postman, which is essentially curl with a GUI.

      • dubyakay@lemmy.ca
        link
        fedilink
        arrow-up
        9
        ·
        9 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.

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

  • QuizzaciousOtter@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    5
    arrow-down
    2
    ·
    10 days ago

    curl is obviously fantastic but for more complex ad-hoc requests I usually prefer httpie.

  • goatinspace@feddit.org
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    10 days ago

    • PodPerson@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 days ago

      Bighead is not to be fucked with.

  • southernbrewer@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    9 days ago

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

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.35K users / day
  • 3.73K users / week
  • 9.66K users / month
  • 19.3K users / 6 months
  • 1 local subscriber
  • 27.1K subscribers
  • 1.3K Posts
  • 33.4K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org