• spacelick@lemmynsfw.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    21 hours ago

    https://en.wikipedia.org/wiki/Swiss_Army_knife

    A swiss army knife is a single tool that contains a number of other smaller tools that you can use in many different circumstances.

    Curl is a metaphorical “swiss army knife” for connecting to computers. There are many protocols to connect to different kinds of computers running different kinds of software and curl allows one to easily connect to many of them.

      • CapillaryUpgrade@lemmy.sdf.org
        link
        fedilink
        arrow-up
        2
        ·
        20 hours ago

        Think of a protocol like a language; if you just blurt out sounds no one will understands, but if you make sounds that correspond to an already agreed upon meaning, it becomes communications.

        The same thing is true for sending 1s and 0s; they are meaningless unless the other end understands them and a protocol is “the agreement” both ends use to communicate.

      • spacelick@lemmynsfw.com
        link
        fedilink
        English
        arrow-up
        1
        ·
        21 hours ago

        Why?

        A protocol is like a language. It just lets two computers know how to talk to each other. That’s it.

          • spacelick@lemmynsfw.com
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            20 hours ago

            Wikipedia works on phones. I’m on an Android phone. Why do you keep pinging that person? This looks like harassment/trolling.

            Edit: are you confused because I said “computers?” Your phone is a computer.

            • confusedpuppy@lemmy.dbzer0.com
              link
              fedilink
              arrow-up
              6
              ·
              20 hours ago

              Different federated platforms talking to each other will look like this sometimes. In this case it’s a microblogging platform talking to a threaded conversation platform. It’s just a quirk of federation in general.

                • confusedpuppy@lemmy.dbzer0.com
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  20 hours ago

                  I don’t have much experience with curl. From what I understand, it’s an old but constantly maintained command line tool. If you type curl https://www.google.com/ in your terminal of choice, you should get a text display in return of google’s search page. That’s if the curl command is installed on your system, which it most likely would be.

                  You won’t be able to interact with it since it’s in text but you can see how the page has been written in the HTML language before it gets rendered into the website you would normally see in a web browser.

                  When it comes to terminal commands, I find it helpful to do web searches using linux <command name>. For example linux curl and that will lead me to many sites that help explain the command and give multiple examples of how to use the command.

                  Once you get more experienced with using a terminal, using the command options --help or -h will give you information that could help you use the command. For example curl --help

                  There’s also manual pages, or man pages that give a more technical look at commands within your terminal of choice. You can access them with man <command name>. Example: man curl.

                  In the case of federation, every platform that is using federation is using a communication protocol called ActivityPub. Simplified, it functions like email but instead of private emails, it’s transferring public social media content. Microbloggers and threaded conversations can communicate with each other using ActivityPub but the information exchanged between the two platforms is slightly different. That’s how we get quirks like this when two different ActivityPub platforms communicate with each other.