Bolhaverso
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
TheracAriane@thebrainbin.org to Linux@programming.dev · 1 day ago

Can someone please explain what is this ? https://curl.se/

message-square
message-square
53
link
fedilink
-1
message-square

Can someone please explain what is this ? https://curl.se/

TheracAriane@thebrainbin.org to Linux@programming.dev · 1 day ago
message-square
53
link
fedilink

Can someone please explain what is this ? https://curl.se/

alert-triangle
You must log in or # to comment.
  • curbstickle@anarchist.nexus
    link
    fedilink
    English
    arrow-up
    15
    ·
    1 day ago

    curl stands for client URL, and you use it to talk to a server (URL) in whatever protocol you specify. Its used for development as a way to test client & server communication, built into applications to perform communication between a client & a server, and its used often because its extremely portable, has great error logging, can be rate limited, and can provide a substantial amount of detail about the communication.

    • TheracAriane@thebrainbin.orgOP
      link
      fedilink
      arrow-up
      5
      ·
      1 day ago

      @curbstickle@anarchist.nexus like Facebook is a server while the app on my mobile is a client ?

      • elmicha@feddit.org
        link
        fedilink
        arrow-up
        6
        ·
        1 day ago

        Yes, facebook is running on a web server and the app (or a browser) is a client.

      • curbstickle@anarchist.nexus
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 day ago

        Yes, though really its a lot of servers.

        I wouldn’t worry about tools yet, I’d recommend getting a book/wiki on networking if you’d like to learn, its knowledge that builds.

  • CarrotsHaveEars@lemmy.ml
    link
    fedilink
    arrow-up
    5
    ·
    1 day ago

    command line tool and library for transferring data with URLs (since 1998)

    Have you even tried to open the very link you posted and read the first line???

    • TheracAriane@thebrainbin.orgOP
      link
      fedilink
      arrow-up
      1
      ·
      22 hours ago

      @racketlauncher831@lemmy.ml l did… And that’s what pressed my curiosity button… That very line you pointed out…

  • 0x0@lemmy.zip
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    1 day ago

    OP seems like an LMM

    • hexagonwin@lemmy.sdf.org
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      13 hours ago

      damn, people here are too kind. literally explaining everything op asks when it can literally be searched on wikipedia lmao…

    • The Quuuuuill@slrpnk.net
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      1 day ago

      Large… Mob Machine

  • Björn@swg-empire.de
    link
    fedilink
    arrow-up
    8
    ·
    1 day ago

    It’s a program to download stuff from the web. It is very flexible. You can tell it to use cookies, post form data, upload and download files. It can do basically everything a web browser does without a graphical user interface.

    It is built into many software pieces. And developers love it to test stuff.

    • TheracAriane@thebrainbin.orgOP
      link
      fedilink
      arrow-up
      2
      ·
      1 day ago

      @bjoern_tantau@swg-empire.de exactly… I wish to avoid browsers and GUIs as far as I can… So this tickled my curiosity…

      • asudox@lemmy.asudox.dev
        link
        fedilink
        arrow-up
        12
        ·
        1 day ago

        Believe me, you aren’t going to get used to nor enjoy “browsing” the web with curl. It’s not what you think it is.

        • TheracAriane@thebrainbin.orgOP
          link
          fedilink
          arrow-up
          2
          ·
          1 day ago

          @asudox@lemmy.asudox.dev but I can fetch the web through the terminal emulator ??

          @bjoern_tantau@swg-empire.de

          • thingsiplay@beehaw.org
            link
            fedilink
            arrow-up
            10
            ·
            1 day ago

            For that I would rather recommend a terminal browser like lynx, w3m or links2 in example. curl is more like a single web request to download one piece of raw file (an html page or an image in example). It is not meant to interpret websites and display results. If you want save webpages for offline view, then something like wget.

          • 48954246@lemmy.world
            link
            fedilink
            English
            arrow-up
            6
            ·
            1 day ago

            The modern internet isn’t designed to be interacted with via a terminal.

            So much of the internet today runs on JavaScript and curl won’t run that

  • porn_was_never_the_real_issue@lemmynsfw.com
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 day ago

    It’s an open source project that is like a Swiss Army knife for, primarily http/https, connections.

    I use it daily for scripting, monitoring and automation.

    • TheracAriane@thebrainbin.orgOP
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

      @porn_was_never_the_real_issue@lemmynsfw.com l often come across this phrase, Swiss Army knife… What does it mean actually ??

      • spacelick@lemmynsfw.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 day 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.

        • TheracAriane@thebrainbin.orgOP
          link
          fedilink
          arrow-up
          1
          ·
          1 day ago

          @borf@lemmynsfw.com thanks. I really need to understand what protocols actually are.

          @porn_was_never_the_real_issue@lemmynsfw.com

          • CapillaryUpgrade@lemmy.sdf.org
            link
            fedilink
            arrow-up
            2
            ·
            1 day 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
            ·
            1 day ago

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

            Read this @TheracAriane@thebrainbin.org

            • TheracAriane@thebrainbin.orgOP
              link
              fedilink
              arrow-up
              1
              ·
              1 day ago

              @borf@lemmynsfw.com thanks 😊 😊 😊

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

                deleted by creator

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

            Why?

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

            • TheracAriane@thebrainbin.orgOP
              link
              fedilink
              arrow-up
              1
              ·
              1 day ago

              @borf@lemmynsfw.com wow… But l’m on my android phone…

              @porn_was_never_the_real_issue@lemmynsfw.com

              • spacelick@lemmynsfw.com
                link
                fedilink
                English
                arrow-up
                1
                ·
                edit-2
                1 day 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
                  ·
                  1 day 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.

    • TheracAriane@thebrainbin.orgOP
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      1 day ago

      @porn_was_never_the_real_issue@lemmynsfw.com http/https connections means ?

      • The Quuuuuill@slrpnk.net
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 day ago

        hypertext transfer protocol and hypertext transfer protocol secure. it’s the basic network protocol of the modern internet. hypertext can be thought of as being html (hypertext markup language) though other hypertext specifications do exist. hypertext just means documents with links to other documents.

        you know how when you copy a url (universal resource location) from your web browser it always has http or https at the start of it? that’s because your web browser is connecting to an external server somewhere via the hypertext transfer protocol.

        cURL can connext to nearly any server via nearly any standard protocol. it’s commonly used for validating connection information and downloading files

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

        It’s the protocol most computers use to show websites. In an internet address like https://google.com/, the https:// is the protocol. Different protocols have different features and purposes, but http/https are some of the most common.

        • TheracAriane@thebrainbin.orgOP
          link
          fedilink
          arrow-up
          1
          ·
          1 day ago

          @borf@lemmynsfw.com l need to explore this a lot more. Can you give me some more leads on this ?

          @porn_was_never_the_real_issue@lemmynsfw.com

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

            First, tell me why you need to know. And please stop pinging that person, it’s really rude to ping someone so many times when not responding to them.

            • The Quuuuuill@slrpnk.net
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 day ago

              they’re not on the threadiverse, they’re on mastodon where the threading works differently. their software is doing that automatically

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

                Maddening

                • The Quuuuuill@slrpnk.net
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  1 day ago

                  🤷 it’s kind of just a function of thah activity pub is loosy goosy about how and what to do with it. end of the day it’s the threadiverse that’s weird and we need to just kind of accept these lumps until lemmy/piefed/mbin devs and mastodon/misskey/whatever devs all get on an issue and decide how best to do this

  • dajoho@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    1 day ago

    deleted by creator

  • dajoho@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    1 day ago

    Curl is very low level. It will let you download things but won’t display it to you in any really useful way. It is intended to be used by other applications.

    If you’re looking to use it to browse websites using the terminal, you need something that uses curl in the background but displays anything you download to you in a sensible way. Two such applications are lynx and links2. These will run in your terminal.

    However you may not have much fun browsing facebook or anything modern. A lot of websites require javascript, which lynx or links2 will have trouble understanding.

    • dajoho@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      1 day ago

      This is links, running on the Terminal on my phone.

      • TheracAriane@thebrainbin.orgOP
        link
        fedilink
        arrow-up
        1
        ·
        19 hours ago

        @dajoho@sh.itjust.works so this is how websites look like from the terminal ?

  • TheracAriane@thebrainbin.orgOP
    link
    fedilink
    arrow-up
    2
    ·
    1 day ago

    @borf@lemmynsfw.com I’m sorry… I’m on brainbin, and l’m yet to get familiar with how it works…

    • spacelick@lemmynsfw.com
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 day ago

      I still don’t understand why you won’t explain why you “need” to learn about curl.

      You don’t need to know anything at all about curl unless you’re working on a technical project, and no offense, I don’t think you are.

      Why do you ““need”” to know about curl?

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

    OP, please tell me more about your situation. What made you curious about this?

    • TheracAriane@thebrainbin.orgOP
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

      @borf@lemmynsfw.com tell me one thing… Do you use the terminal on your mobile phone ??

      • spacelick@lemmynsfw.com
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 day ago

        Not these days.

        Curl isn’t just a command line tool, it is also a “library” which other computer software uses. Everyone’s phone uses curl under the hood. Almost every electronic device that connects to something remote uses curl under the hood.

        I still don’t understand what you’re trying to do.

    • TheracAriane@thebrainbin.orgOP
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

      @borf@lemmynsfw.com l just saw that it runs on cli, and l was wondering if it can be used as a terminal emulator.

      • spacelick@lemmynsfw.com
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 day ago

        Curl is not a terminal emulator. Unless you provide a better reason I am now assuming you are a troll.

        • 48954246@lemmy.world
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 day ago

          Not a troll. Just a kid trying to figure out how to browse the web with a terminal.

          This is a basic https://xyproblem.info/

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

            I thought maybe an XY problem at first but the refusal to do any research on one’s own or to reply to my repeated requests to know what they were really trying to do made me block them as posting in bad faith.

          • TheracAriane@thebrainbin.orgOP
            link
            fedilink
            arrow-up
            1
            ·
            1 day ago

            @48954246@lemmy.world well, l am a kid when it comes to computers and technology…

            @borf@lemmynsfw.com

          • TheracAriane@thebrainbin.orgOP
            link
            fedilink
            arrow-up
            1
            arrow-down
            1
            ·
            1 day ago

            @48954246@lemmy.world WOW…

            @borf@lemmynsfw.com

        • TheracAriane@thebrainbin.orgOP
          link
          fedilink
          arrow-up
          1
          ·
          1 day ago

          @borf@lemmynsfw.com l’m not a troll. I discovered it in Codeberg, and it raised my curiosity. Probably l don’t have any use for it at this point of time.

Linux@programming.dev

linux@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: !linux@programming.dev

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

  • !linux_memes@programming.dev
  • !linuxphones@lemmy.ca
  • Matrix instant messaging group chat

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

Visibility: Public
globe

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

  • 494 users / day
  • 2.2K users / week
  • 4.4K users / month
  • 10.5K users / 6 months
  • 2 local subscribers
  • 10.2K subscribers
  • 2.84K Posts
  • 19.5K Comments
  • Modlog
  • mods:
  • Ategon@programming.dev
  • adr1an@programming.dev
  • dwraf_of_ignorance@programming.dev
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org