Skip Menu |

This queue is for tickets about the HTTP-Recorder CPAN distribution.

Report information
The Basics
Id: 7489
Status: resolved
Priority: 0/
Queue: HTTP-Recorder

People
Owner: Nobody in particular
Requestors: pastaman [...] jhu.edu
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.02
Fixed in: 0.03_01



From: "Patrick Reiner" <pastaman [...] jhu.edu>
To: <bug-HTTP-Recorder [...] rt.cpan.org>
Subject: HTTP::Recorder Error
Date: Fri, 27 Aug 2004 00:01:31 -0400
Hi, I am using Windows XP with LWP::UserAgent version 2.032 and HTTP::Recorder version 0.02. This is what i'm doing: use strict; use warnings; use HTTP::Proxy; use HTTP::Recorder; (line 1) my $proxy = HTTP::Proxy->new(); (line 2) my $agent = HTTP::Recorder->new( file => "/tmp/tmpfile", showwindow => 1); (line 3) $proxy->agent( $agent ); Every time I run this in cmd, I get the following Error: "Unrecognized LWP::UserAgent options: file prefix showwindow at file.pl line 65" which is referring to line 2 above. I've also tried using my $agent = new HTTP::Recorder; my $agent = HTTP::Recorder->new(); my $agent = HTTP::Recorder->new(showwindow=>1); None of the above work, and I have NO IDEA where this error is coming from, I've really tried everything I could think of. Any help? - Pat
From: "Patrick Reiner" <pastaman [...] jhu.edu>
To: <bug-HTTP-Recorder [...] rt.cpan.org>
Subject: [cpan #7488] Compiler
Date: Fri, 27 Aug 2004 00:39:37 -0400
RT-Send-Cc:
I am using the activeperl 5.8.4 compiler. - Pat
Subject: HTTP::Recorder Error
Hi, I am using Windows XP with the activeperl 5.8.4 compiler, LWP::UserAgent version 2.032 and HTTP::Recorder version 0.02. This is what i'm doing: use strict; use warnings; use HTTP::Proxy; use HTTP::Recorder; (line 1) my $proxy = HTTP::Proxy->new(); (line 2) my $agent = HTTP::Recorder->new( file => "/tmp/tmpfile", showwindow => 1); (line 3) $proxy->agent( $agent ); Every time I run this in cmd, I get the following Error: "Unrecognized LWP::UserAgent options: file prefix showwindow at file.pl line 65" which is referring to line 2 above. I've also tried using my $agent = new HTTP::Recorder; my $agent = HTTP::Recorder->new(); my $agent = HTTP::Recorder->new(showwindow=>1); None of the above work, and I have NO IDEA where this error is coming from, I've really tried everything I could think of. Any help? - Pat
[guest - Fri Aug 27 00:54:49 2004]: I'd say try taking out 'use warnings'. Looks like HTTP::Recorder assumes it can pass its own options to UserAgent with impunity. As long as warnings aren't enabled it works fine. Show quoted text
> Hi, > I am using Windows XP with the activeperl 5.8.4 compiler, > LWP::UserAgent version 2.032 and HTTP::Recorder version 0.02. > > This is what i'm doing: > > use strict; > use warnings; > use HTTP::Proxy; > use HTTP::Recorder; > > (line 1) my $proxy = HTTP::Proxy->new(); > (line 2) my $agent = HTTP::Recorder->new( file => "/tmp/tmpfile", > showwindow => 1); > (line 3) $proxy->agent( $agent ); > > Every time I run this in cmd, I get the following Error: "Unrecognized > LWP::UserAgent options: file prefix showwindow at file.pl line 65" > which is referring to line 2 above. I've also tried using > > my $agent = new HTTP::Recorder; > my $agent = HTTP::Recorder->new(); > my $agent = HTTP::Recorder->new(showwindow=>1); > > None of the above work, and I have NO IDEA where this error is coming > from, I've really tried everything I could think of. Any help? > > - Pat
[guest - Fri Aug 27 00:54:49 2004]: Show quoted text
> my $agent = new HTTP::Recorder; > my $agent = HTTP::Recorder->new();
I believe these will work properly in 0.03_01. After you've created $agent, you can set its arguments separately. Linda