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

all 52 comments

sorted by: hot top controversial new old
[–] 13 points 11 months ago (2 children)

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.

  • source
  • hideshow 2 child comments
  • [–] 7 points 11 months ago (5 children)

    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.

  • source
  • hideshow 5 child comments
  • [–] [S] 2 points 11 months ago (4 children)

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

  • source
  • parent
  • hideshow 4 child comments
  • [–] 12 points 11 months ago (3 children)

    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.

  • source
  • parent
  • hideshow 3 child comments
  • [–] [S] 2 points 11 months ago (2 children)
  • [–] 10 points 11 months 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.

  • source
  • parent
  • [–] 6 points 11 months ago (22 children)

    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.

  • source
  • hideshow 22 child comments
  • [–] [S] 1 point 11 months ago (13 children)

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

  • source
  • parent
  • hideshow 13 child comments
  • [–] 2 points 11 months ago (12 children)

    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.

  • source
  • parent
  • hideshow 12 child comments
  • [–] [S] 1 point 11 months ago (11 children)
  • [–] 2 points 11 months 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.

  • source
  • parent
  • [–] 1 point 11 months ago (7 children)

    Why?

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

  • source
  • parent
  • hideshow 7 child comments
  • [–] [S] 1 point 11 months ago (6 children)
  • [–] 1 point 11 months ago* (last edited 11 months ago) (5 children)

    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.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 6 points 11 months ago (4 children)

    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.

  • source
  • parent
  • hideshow 4 child comments
  • [–] [S] 1 point 11 months ago (2 children)
  • [–] 1 point 11 months 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.

  • source
  • parent
  • [–] [S] 0 points 11 months ago (7 children)
  • [–] 2 points 11 months 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

  • source
  • parent
  • [–] 1 point 11 months ago (5 children)

    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.

  • source
  • parent
  • hideshow 5 child comments
  • [–] [S] 1 point 11 months ago (4 children)

    @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

  • source
  • parent
  • hideshow 4 child comments
  • [–] 1 point 11 months ago* (last edited 11 months ago) (3 children)

    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.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 11 months ago (2 children)

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

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 11 months ago (1 child)
  • [–] 2 points 11 months 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

  • source
  • parent
  • [–] 4 points 11 months ago (1 child)

    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???

  • source
  • hideshow 1 child comment
  • [–] 5 points 11 months ago (2 children)
  • [+] 1 point 11 months ago (2 children)
  • [–] [S] 1 point 11 months ago (1 child)

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

  • source
  • hideshow 1 child comment
  • [–] 3 points 11 months 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?

  • source
  • parent
  • [–] 1 point 11 months ago* (9 children)

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

  • source
  • hideshow 9 child comments
  • [–] [S] 1 point 11 months ago (1 child)

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

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 11 months 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.

  • source
  • parent
  • [–] [S] 1 point 11 months ago (6 children)

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

  • source
  • parent
  • hideshow 6 child comments
  • [–] 3 points 11 months ago (5 children)

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

  • source
  • parent
  • hideshow 5 child comments
  • [–] 3 points 11 months ago (3 children)

    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/

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 11 months 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.

  • source
  • parent