in reply to command line output from http query

You could try ...
$ telnet www.perlmonks.com 80 GET /index.pl
... but You will probably want to check out LWP