Friday, November 10, 2006

Retrieving webpage through telnet

Earlier there was a confusion in my mind about how to retrieve web page through telnet. Which can be useful in many applications. Now I figured out how.

Do you wanna know? Here is the magic:


> telnet us.ixquick.com 80
Trying 64.71.175.192...
Connected to us.ixquick.com.
Escape character is '^]'.
Ixquick MetasearchGET /index.html HTTP/1.1 << equiv="Content-Type" content="text/html; charset=utf-8">


XXXXXXXXXXXXXXXXXXXXXXXXXxx

XXXXXXXXXXXXXX

So simple..
Benefit for above technique is in HTTP 1.1 session remain continue where as in HTTP 1.0 session terminates once page has been retrieved and displayed.

If we need to retrieve outpnot be accepted: Tag ut with HTTP 1.0 then its very easier
We just need to write
"GET /index.html HTTP/1.0"

And the data shower gets OOOOOOOOOOOOOONNNNNNNNNNNN....

No comments: