Hear us Roar
Article:
 |
|
Learning the Terminal in Jaguar, Part 1
|
| Subject: |
|
Using terminal to "see" a web request |
| Date: |
|
2005-06-07 14:24:23 |
| From: |
|
xurizaemon
|
Response to: Safari
|
|
Ok, you can do this. (Damn, I wish I hadn't run out of ttys so I could test it!)
## opens telnet connection to webserver on port 80 (HTTP)
$ telnet webserver.com 80
## webserver prints connection open message here
HEAD /file.html HTTP/1.1
Host: webserver.com
## webserver prints headers returned from URL
## webserver.com/file.html
## or you can retrieve the file like so
GET /file.html HTTP/1.1
Host: webserver.com
## webserver prints the raw HTML (or other) file
## to your terminal
Using the HTTP Headers extension in Mozilla is easier though ;)
|
|
| |