

For example, you can specify multiple hosts with: curl which hits all three sites. One really interesting option is the ability to use multiple URLs through ranges. You can specify form name/value pairs so that the Web server thinks you are submitting a form by using the option -F name=value. It can do things like HTTP POST, SSL connections and cookies. curl can transfer data to or from a server on the Internet using HTTP, FTP, SFTP and even LDAP.
#Submitting form elinks command line download
Now that you can look at Web content from the command line, how can you interact with the Web? What I really mean is, how do you upload and download from the Web? Say you want an off-line copy of some content from the Web, so you can read it at your leisure by the lake where you don't have Internet access. When you use this, ELinks prints out all the resolved IP addresses for a given domain name. This option disables local file browsing and downloads, among other things. One possibly useful option is -anonymous 1. ELinks supports colors, table rendering, frames, background downloading and tabbed browsing. If you are looking for a strictly text replacement for the venerable Lynx, there is ELinks. For example, -http-bugs.http10 1 forces Links to use HTTP 1.0, even when a server claims to support HTTP 1.1. To compensate for this, use the -http-bugs.* options.

Several Web servers claim to be compliant with a particular HTTP version but aren't. Links also is able to deal with buggy Web servers. If you need to use a proxy, tell Links which to use with the option -http-proxy host:port. Links also can write the rendered Web pages to standard output with the -dump option. You can select one of these graphics interfaces with the option -g. The graphics systems supported include X11, SVGA and framebuffer. Links not only works in text mode on the command line, but it also can be compiled to use a graphics display. It has a hard time with HTML table rendering, and it doesn't handle frames. You can choose what kind of key mapping to use with the options -vikeys or -emacskeys, so shortcut keys will match your editor of choice. This way, you can process Web pages to a readable format and dump them into a file for later viewing. You can use Lynx to process Web pages into a readable form with the option -dump, which takes the rendered output from Lynx and writes it to standard out. Use the option -accept_all_cookies to avoid those warning messages. Most sites these days use cookies, so you may not want to hear about every cookie. When you tested loading Google above, Lynx asked about whether or not to accept a cookie.

Lynx adds all of those URLs to the history of your session and renders the last URL and displays it. You can hand in more than one URL when you launch Lynx. Several options to Lynx might be handy to know. Because the layout is very simple and text-based, items are in very different locations on the screen from what you would see when using a graphical browser. You can navigate from link to link with the arrow keys. But, all the links and the text box for entering search queries are there. As you will no doubt notice, there are no images. Once you either accept or reject the cookie, Lynx loads the Web page and renders it. Lynx then asks you whether you want to accept a cookie Google is trying to set. So, if you wanted to hit Google, you would run: lynx In its most basic form, you simply run it on the command line and give it a filename or a URL. Lynx actually was my first Web browser, running on a machine that couldn't handle X11. The first utility to look at is also one of the oldest, the venerable Lynx. Let's say you want to surf the Web and find some content. Lots of utilities are available for surfing the Web and also for downloading or uploading content. But, the console isn't the wasteland it might seem. And, under X11, there are lots of great programs, like Firefox or Chrome. Most people think “graphical interfaces” when they think of surfing the Web.
