Wednesday, November 15, 2006

Tuesday, November 14, 2006

Pass Query String from shell to a perl script

Its as simple as:

"perl var1=value1 var2=value2 var3=value3"

This is equal to:
"http://path/to/ "

Working fine with perl 5.8.1.

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 80
Connected to
Escape character is '^]'.
Ixquick MetasearchGET /index.html HTTP/1.1 << equiv="Content-Type" content="text/html; charset=utf-8">



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

Fwd: http/1.1 syntax