http://www.oreilly.com/pub/h/66
Tuesday, December 05, 2006
Thursday, November 23, 2006
Wednesday, November 15, 2006
Tuesday, November 14, 2006
Pass Query String from shell to a perl script
Its as simple as:
"perl programname.pl var1=value1 var2=value2 var3=value3"
This is equal to:
"http://path/to/programname.pl?var1=value1&var2=value2&var3=value3 "
Working fine with perl 5.8.1.
"perl programname.pl var1=value1 var2=value2 var3=value3"
This is equal to:
"http://path/to/programname.pl?var1=value1&var2=value2&var3=value3 "
Working fine with perl 5.8.1.
Saturday, November 11, 2006
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 Metasearch GET /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....
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 '^]'.
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....
Tuesday, September 05, 2006
Friday, September 01, 2006
Thursday, August 24, 2006
Thursday, August 10, 2006
Tuesday, August 08, 2006
Wednesday, January 25, 2006
Thursday, December 22, 2005
Tuesday, December 06, 2005
Wednesday, November 30, 2005
Wednesday, November 23, 2005
Code to Get Error message from Error Code
HLOCAL hLocal = NULL;
DWORD Error_no = GetLastError();
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM FORMAT_MESSAGE_ALLOCATE_BUFFER,
NULL, Error_no, MAKELANGID(LANG_ENGLISH,
SUBLANG_ENGLISH_US),(LPTSTR)&hLocal,
0, NULL);
MessageBox(NULL, (LPCTSTR)LocalLock(hLocal), TEXT("Error"), MB_OK
MB_ICONERROR);
LocalFree(hLocal);
Sunday, November 20, 2005
Friday, October 07, 2005
Subscribe to:
Posts (Atom)