Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

command line web browsing

Is there a way to perform http commands GET/PUT/SET whatever via a command line in ubuntu or windows xp? Preferably without installing 3rd party products. Being that http is text based I thought it would be alot easier to run in the cmd line.

I've been able to get what I want out of GET in ubuntu in bash via

$wget google.com
$cat index.html

This is kinda clunky. It would be nice to pipe the output or something, but even that isn't straight forward. C programs are fine too. I'm trying to do something like what we get with Fiddler, but more basic.

like image 822
P.Brian.Mackey Avatar asked Jan 06 '11 20:01

P.Brian.Mackey


People also ask

How do I browse the internet using terminal?

Go to the terminal and type this command sudo apt-get install w3m w3m-img . Type Y when asked to confirm. Now wait; it's just a matter of 3 MBs. Whenever you want to open a web page, go to the terminal and type w3m wikihow.com , with your destination URL in the place of wikihow.com as needed.

Which of the following commands will help web browsing in Linux?

9 Command Line Tools for Browsing Websites and Downloading Files in Linux. In the last article, we have covered few useful tools like 'rTorrent', 'wget', 'cURL', 'w3m', and 'Elinks'.

Is there a console browser for Linux?

W3M. w3m is a popular open-source text-based web browser for the terminal. Even though the original project is no longer active, an active version of it is being maintained by a different developer Tatsuya Kinoshita.


1 Answers

telnet google.com 80
GET / HTTP/1.0
Host: google.com

You have to hit return twice after the Host line. It doesn't get any more basic.

like image 140
Paul Tomblin Avatar answered Oct 26 '22 02:10

Paul Tomblin