hey, how might I make a connection with a perl script through a proxy server or a proxy chain?
Printable View
hey, how might I make a connection with a perl script through a proxy server or a proxy chain?
You could use sockets. Sockets are the main mechanism that Perl uses to communicate on the network. Here are a couple of intro tutorials to Perl and sockets:
http://www.linuxjournal.com/article.php?sid=2057
http://www.perlfect.com/articles/sockets.shtml
http://www.cs.cf.ac.uk/Dave/PERL/node168.html
Use libwwwperl to make the HTTP connection (assuming here that it is an HTTP connection you want to make). Set the options in libwwwperl (read perldoc LWP) to use the proxy on the given host name and port number. That should work.
Unless you're doing something really low level there's no need to use sockets directly.