[32593] in Perl-Users-Digest
Perl-Users Digest, Issue: 3865 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Jan 20 11:09:17 2013
Date: Sun, 20 Jan 2013 08:09:03 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Sun, 20 Jan 2013 Volume: 11 Number: 3865
Today's topics:
Redirecting socket connections in LWP::UserAgent or WWW <ignoramus4362@NOSPAM.4362.invalid>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sun, 20 Jan 2013 09:57:52 -0600
From: Ignoramus4362 <ignoramus4362@NOSPAM.4362.invalid>
Subject: Redirecting socket connections in LWP::UserAgent or WWW::Mechanize
Message-Id: <vaqdnTmj8MadiWHNnZ2dnUVZ_u2dnZ2d@giganews.com>
I use WWW::Mechanize to automate a certain web task.
I connect to a HTTPS website https://web.site/url
However, I want to connect from another IP address, other than what
the computer is.
Since I have a lot of servers, I could easily set up SSH port
forwardings so that a connection to localhost:9876 would be redirected
as a connection to web.site port 443, through a remote server that I
own.
My question is how to instruct LWP::UserAgent or WWW::Mechanize to
route connections through localhost:9876, and not to web.site port
443.
In the end, the end result will be the same, I will connect to
web.site port 443, but through a tunnel to a completely different
server.
What I am not sure is how to tell LWP::UserAgent to do so.
The proxy settings seem to do something a little different.
I am using linux, by the way.
i
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V11 Issue 3865
***************************************