Click here to get back home

Net::Telnet -- does it support Proxy or SOCKS connections?

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Net::Telnet -- does it support Proxy or SOCKS connections? David B. Mears 08-04-2005
Posted by David B. Mears on August 4, 2005, 11:10 pm
Please log in for more thread options


Does Net::Telnet support connections through either a Proxy or SOCKS
host as an intermediary?

I'm trying to experiment to see if I can get a GIF from an HTTP site
which my browswer won't get because it doesn't provide one specific
header in the GET request which the server is expecting. I did a
quick experiment using a socksified telnet (I'm behind a firewall
and can't directly connect) to connect to port 80. I sent the GET
request along with the missing header and was able to retrieve the
image, except for one unfortunate problem -- the GIF contained
multiple instances of 0xFF characters which are "special" to telnet
and were thus removed from the data stream, resulting in a corrupted
GIF image. (I was able to verify this was what happened via other
means.)

So I thought if I could figure out a simple way to connect to the port
with something other than telnet itself, I could retrieve all the data
without the 0xFF chars being stripped out. Searching around a bit via
the CPAN site led me to Net::Telnet. It appears it will allow me to
do what I want (via a Perl CGI program) as long as it would allow me
to connect through the firewall by specifying either a Proxy or SOCKS
host to go through.

Or does anyone have any other suggestions for a quick/simple way to
connect to port 80 of a host outside my firewall such that I can craft
the GET request sent to the port to include the full set of the headers
required for the retreival I'm attempting?

Thanks!

David B. Mears
Hewlett-Packard
Cupertino CA
mears@cup.hp.com


Similar ThreadsPosted
SQL Server Trusted Connections with DBD::ODBC under Cygwin March 25, 2005, 5:57 pm
How do you telnet from 1 host to another using Telnet Module December 21, 2005, 4:15 pm
Using HTTP::Proxy September 23, 2004, 5:41 am
LWP, https and a proxy February 22, 2005, 7:43 am
HTTP::Proxy and not using 127.0.0.1 May 11, 2006, 6:10 pm
DBI/DBD-Oracle and Proxy June 13, 2007, 11:43 am
PPM through Proxy (Activeperl / Activestate) July 14, 2005, 1:37 pm
wsp, Firefox proxy and ports August 21, 2007, 9:08 pm
mod_perl and proxy settings May 26, 2008, 3:03 pm
HTTP::Proxy - how to detect start and end of URL fetch September 26, 2004, 6:00 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap