<html><div style='background-color:'><DIV class=RTE>Hi all,</DIV>
<DIV class=RTE>&nbsp;</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&nbsp;two of my applications (lucky me ;').&nbsp;The appl that uses FTP works fine, but a&nbsp;test script to set the http proxy URL is as follows:</DIV>
<DIV class=RTE>&nbsp;</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-&gt;new<BR>&nbsp;&nbsp;&nbsp; or die "Can't initialize LWP::UserAgent-&gt;new: \$!=$!\n";</DIV>
<DIV class=RTE>$ua-&gt;proxy(http =&gt; 'http://ttt.ww.xxx.yyy:8080/')<BR>&nbsp;&nbsp;&nbsp; or die "(object method call) Can't set http to proxy server: \$!=$!\n";</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>Whether run by me or by *root* the result is:</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>Uncaught exception from user code:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (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>&nbsp;</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>&nbsp;</DIV>
<DIV class=RTE>Please tell me that I'm not the only Perl&nbsp;hacker to get caught in this web of mystery. Any ideas are welcome.</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>thx, Jason</DIV>
<DIV class=RTE>&nbsp;</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&nbsp;showed up Monday and I've only read about 10 pages; sounds interesting though.<BR></DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>&nbsp;</DIV></div></html>