From Brad.Stahl at cabelas.com Tue Jul 5 14:04:15 2005 From: Brad.Stahl at cabelas.com (Brad R. Stahl) Date: Tue, 05 Jul 2005 15:04:15 -0600 Subject: [Boulder.pm] Manipulating a QuarkXPress document Message-ID: I am looking into using Perl to manipulate a Quark Document, and am having trouble with the file becoming corrupt. All I am trying to do is change the layout name, but when I do, the file becomes corrupt. Any suggestions? From jason_van_slyke at hotmail.com Wed Jul 20 13:56:02 2005 From: jason_van_slyke at hotmail.com (Jason Van Slyke) Date: Wed, 20 Jul 2005 20:56:02 +0000 Subject: [Boulder.pm] LWP::UserAgent question Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/boulder-pm/attachments/20050720/c3eb5ac9/attachment.html From wpiencia at thunderdome.ieee.org Wed Jul 20 14:08:13 2005 From: wpiencia at thunderdome.ieee.org (Walter Pienciak) Date: Wed, 20 Jul 2005 15:08:13 -0600 Subject: [Boulder.pm] LWP::UserAgent question In-Reply-To: References: Message-ID: <20050720210813.GA26987@thunderdome.ieee.org> On Wed, Jul 20, 2005 at 08:56:02PM +0000, Jason Van Slyke wrote: > > Hi all, > > 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: > > #!/usr/bin/perl -w > use diagnostics; > use strict ; > use LWP::UserAgent; > # intialize proxy setting - this is not working, 29Apr05, jvs > my $ua = LWP::UserAgent->new > or die "Can't initialize LWP::UserAgent->new: \$!=$!\n"; > $ua->proxy(http => 'http://ttt.ww.xxx.yyy:8080/') > or die "(object method call) Can't set http to proxy server: > \$!=$!\n"; > > Whether run by me or by *root* the result is: > > Uncaught exception from user code: > (object method call) Can't set http to proxy server: $!= > Sometimes, but not in all cases as the example shows, $!=Illegal seek > > 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. > > Please tell me that I'm not the only Perl hacker to get caught in this > web of mystery. Any ideas are welcome. > > thx, Jason > > 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. Jason, I haven't had to wrestle with this, but I do wonder if use LWP::Debug qw(+) would give you anything interesting. Walter From jason_van_slyke at hotmail.com Wed Jul 20 14:36:09 2005 From: jason_van_slyke at hotmail.com (Jason Van Slyke) Date: Wed, 20 Jul 2005 21:36:09 +0000 Subject: [Boulder.pm] LWP::UserAgent question In-Reply-To: <20050720210813.GA26987@thunderdome.ieee.org> Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/boulder-pm/attachments/20050720/4412b906/attachment.html From nagler at bivio.biz Wed Jul 20 15:28:27 2005 From: nagler at bivio.biz (Rob Nagler) Date: Wed, 20 Jul 2005 16:28:27 -0600 Subject: [Boulder.pm] LWP::UserAgent question In-Reply-To: References: Message-ID: <17118.53259.353836.987203@ski.bivio.com> Jason Van Slyke writes: > #!/usr/bin/perl -w Have you tried perl -d? We have had problems with HTTPS proxy connetions on RH6.2 going through Apache. I think this went away when we went to RH7.2 on the proxy server and the client. RPM also had problems, but I suspect this was unrelated. When you are in perl -d, you can look at what sockets are open with netstat -a. You can also dump your tcp traffic to see what's going on. It would be good to know the line in LWP that was failing. It's all Perl so should be easy to trace. Rob From jason_van_slyke at hotmail.com Thu Jul 21 12:01:33 2005 From: jason_van_slyke at hotmail.com (Jason Van Slyke) Date: Thu, 21 Jul 2005 19:01:33 +0000 Subject: [Boulder.pm] LWP::UserAgent question In-Reply-To: <17118.53259.353836.987203@ski.bivio.com> Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/boulder-pm/attachments/20050721/773d3f30/attachment.html From nagler at bivio.biz Thu Jul 21 13:00:12 2005 From: nagler at bivio.biz (Rob Nagler) Date: Thu, 21 Jul 2005 14:00:12 -0600 Subject: [Boulder.pm] LWP::UserAgent question In-Reply-To: References: <17118.53259.353836.987203@ski.bivio.com> Message-ID: <17119.65228.555194.458745@ski.bivio.com> Jason Van Slyke writes: > And then diagnostics chatters on for hundreds of lines. I apologize, > but I am not fluent in the use of the perl debugger. But if you give a > brief description of what I should have done, there is a pocket guide > to the perl debugger around here somewhere and I'll get it > done. diagnostics is probably making the chatter. Have you tried: perl program 2>diag.out splain diag.out Alternatively, you could: perl -Mdiagnostics=-traceonly my_script.pl And send me the stack trace. Rob From jason_van_slyke at hotmail.com Fri Jul 22 09:28:33 2005 From: jason_van_slyke at hotmail.com (Jason Van Slyke) Date: Fri, 22 Jul 2005 16:28:33 +0000 Subject: [Boulder.pm] LWP::UserAgent question Message-ID: An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/boulder-pm/attachments/20050722/a0fe27ea/attachment.html -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: perl_debugger_test_proxy.txt Url: http://mail.pm.org/pipermail/boulder-pm/attachments/20050722/a0fe27ea/perl_debugger_test_proxy.txt From nagler at bivio.biz Fri Jul 22 11:19:49 2005 From: nagler at bivio.biz (Rob Nagler) Date: Fri, 22 Jul 2005 12:19:49 -0600 Subject: [Boulder.pm] LWP::UserAgent question In-Reply-To: References: Message-ID: <17121.14533.633264.768996@ski.bivio.com> Jason Van Slyke writes: > $ua->proxy(http => 'http://ttt.ww.xxx.yyy:8080/') > or die "(object method call) Can't set http to proxy server: Since proxy returns $old, which is false. You shouldn't be checking the return value. The problem must be elsewhere. I'm travelling today and will be back Monday afternoon. Rob