My Lemmy Oracle
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmings.world to Programmer Humor@programming.dev · 1 个月前

Just use cURL

justuse.org

external-link
message-square
60
fedilink
  • cross-posted to:
  • [email protected]
  • [email protected]
271
external-link

Just use cURL

justuse.org

cm0002@lemmings.world to Programmer Humor@programming.dev · 1 个月前
message-square
60
fedilink
  • cross-posted to:
  • [email protected]
  • [email protected]
alert-triangle
You must log in or register to comment.
  • kambusha@sh.itjust.works
    link
    fedilink
    arrow-up
    59
    ·
    1 个月前

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

    • Bazoogle@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      28 天前

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

  • Ethanol@pawb.social
    link
    fedilink
    English
    arrow-up
    34
    ·
    1 个月前

    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
      24
      ·
      1 个月前

      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
        ·
        30 天前

        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
          4
          ·
          30 天前

          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
            4
            ·
            30 天前

            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
          4
          ·
          30 天前

          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
          ·
          30 天前

          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
    30 天前

    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
      ·
      30 天前

      Wow the httpie site is terrible

      • RheumatoidArthritis@mander.xyz
        link
        fedilink
        arrow-up
        3
        ·
        30 天前

        Hahahahaha you’re not wrong

        Screenshot_20251022-080824_Cromite

    • jenesaisquoi@feddit.org
      link
      fedilink
      English
      arrow-up
      5
      ·
      29 天前

      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
        ·
        29 天前

        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
          ·
          29 天前

          All the more reason to learn and use curl

          • Dr. Moose@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            28 天前

            Yes after you learn all better clients first, sure.

            • jenesaisquoi@feddit.org
              link
              fedilink
              English
              arrow-up
              1
              ·
              28 天前

              Which do you consider better?

              • luciferofastora@feddit.org
                link
                fedilink
                arrow-up
                2
                ·
                28 天前

                …probably the ones they mentioned in the root comment?

    • ohlaph@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      29 天前

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

    • RheumatoidArthritis@mander.xyz
      link
      fedilink
      arrow-up
      1
      ·
      30 天前

      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
    ·
    30 天前

    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
      14
      ·
      edit-2
      29 天前

      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
        9
        ·
        29 天前

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

        • optional@sh.itjust.works
          link
          fedilink
          arrow-up
          2
          ·
          29 天前

          “Tru dat\!”

        • FuckBigTech347@lemmygrad.ml
          link
          fedilink
          arrow-up
          1
          arrow-down
          1
          ·
          28 天前

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

      • AlphaAutist@lemmy.world
        link
        fedilink
        arrow-up
        7
        arrow-down
        1
        ·
        29 天前

        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
          29 天前

          Yeah but why would you, they already have proper shells

        • optional@sh.itjust.works
          link
          fedilink
          arrow-up
          5
          ·
          28 天前

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

      • dariusj18@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        29 天前

        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
          ·
          28 天前

          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
    20
    arrow-down
    1
    ·
    1 个月前

    You can pry wget from my cold, dead hands.

    • sga@piefed.social
      link
      fedilink
      English
      arrow-up
      21
      arrow-down
      2
      ·
      1 个月前

      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
    ·
    1 个月前

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

    • QuazarOmega@lemy.lol
      link
      fedilink
      arrow-up
      3
      ·
      1 个月前

      With none other than…

      • 𝚝𝚛𝚔@aussie.zone
        link
        fedilink
        English
        arrow-up
        5
        ·
        29 天前

        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
          ·
          28 天前

          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
          ·
          28 天前

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

  • RheumatoidArthritis@mander.xyz
    link
    fedilink
    arrow-up
    10
    ·
    30 天前

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

    • codemankey@programming.dev
      link
      fedilink
      English
      arrow-up
      13
      ·
      30 天前

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

      • myfavouritename@beehaw.org
        link
        fedilink
        English
        arrow-up
        3
        ·
        28 天前

        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
        ·
        30 天前

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

    • jenesaisquoi@feddit.org
      link
      fedilink
      English
      arrow-up
      4
      ·
      29 天前

      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
      ·
      29 天前

      I was pretty bullish on insomnia until it enshitified

  • TJA!@sh.itjust.works
    link
    fedilink
    arrow-up
    10
    ·
    1 个月前

    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
      8
      ·
      1 个月前

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

      • TJA!@sh.itjust.works
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        30 天前

        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
          ·
          30 天前

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

  • PortNull@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    7
    ·
    1 个月前

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

  • Frezik@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 个月前

    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
    29 天前

    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
      25
      ·
      29 天前

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

      • dubyakay@lemmy.ca
        link
        fedilink
        arrow-up
        9
        ·
        29 天前

        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
    ·
    30 天前

    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
    6
    arrow-down
    2
    ·
    1 个月前

    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
    1 个月前

    • PodPerson@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      30 天前

      Bighead is not to be fucked with.

  • CodeBlooded@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    28 天前

    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.

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: [email protected]

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.

  • 2.44K users / day
  • 4.97K users / week
  • 8.95K users / month
  • 19.4K users / 6 months
  • 1 local subscriber
  • 27.4K subscribers
  • 1.96K Posts
  • 70.8K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org