<html><div style='background-color:'><DIV class=RTE>Hi all,</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>We have a Perl program that runs on a RH Linux 2.1 Advanced Server machine that resides behind a firewall. About 99.9% of what it does is within that firewall...except for two of my applications (lucky me ;'). The appl that uses FTP works fine, but a test script to set the http proxy URL is as follows:</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>#!/usr/bin/perl -w</DIV>
<DIV class=RTE>use diagnostics;<BR>use strict ;<BR>use LWP::UserAgent;</DIV>
<DIV class=RTE># intialize proxy setting - this is not working, 29Apr05, jvs</DIV>
<DIV class=RTE>my $ua = LWP::UserAgent->new<BR> or die "Can't initialize LWP::UserAgent->new: \$!=$!\n";</DIV>
<DIV class=RTE>$ua->proxy(http => 'http://ttt.ww.xxx.yyy:8080/')<BR> or die "(object method call) Can't set http to proxy server: \$!=$!\n";</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>Whether run by me or by *root* the result is:</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>Uncaught exception from user code:<BR> (object method call) Can't set http to proxy server: $!=<BR></DIV>
<DIV class=RTE>Sometimes, but not in all cases as the example shows, $!=Illegal seek</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>I have been on 4 conference calls with the a server engineer and a firewall engineer and they are telling me that the proxy server never hears from my server during our tests.</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>Please tell me that I'm not the only Perl hacker to get caught in this web of mystery. Any ideas are welcome.</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>thx, Jason</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>PS: Anybody had enough time to read some (or all I guess) of Perl Best Practices? What did you think of it? My copy showed up Monday and I've only read about 10 pages; sounds interesting though.<BR></DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE> </DIV></div></html>