Tuesday, April 10, 2007

Links must be visited before MF investment

http://www.rediff.com/money/2007/apr/10perfin1.htm

http://www.rediff.com/getahead/2007/apr/10market.htm

 

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.

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

Fwd: http/1.1 syntax

http://www.security-labs.org/full-page.php3?page=128

Tuesday, December 06, 2005

10 tips on how to love the job you hate

http://www.rediff.com/money/2005/dec/07forbes.htm

Tips More Important than MBA

http://www.rediff.com/money/2005/dec/06mba.htm

Wednesday, November 30, 2005

11 scholarship options for the UK

http://www.rediff.com/getahead/2005/nov/30abr1.htm

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);