Hi friends,
I would like to work with http recorder. But i am facing some problems in making it successful.
file:
myproxy.pl
use strict;
use warnings;
use HTTP::Proxy;
use HTTP::Recorder;
#my $proxy = HTTP::Proxy->new();
my $proxy = HTTP::Proxy->new( port => 3128 );
# create a new HTTP::Recorder object
my $agent = new HTTP::Recorder;
# set the log file (optional)
$agent->file("C:\\Temp\\myfile");
# set HTTP::Recorder as the agent for the proxy
$proxy->agent( $agent );
# start the proxy
$proxy->start();
1;
I am working on windows OS.
I have successfully installed http::recorder module downloaded from http://ppm.activestate.com/PPMPackages/zips/8xx-builds-only/Windows/.
But i did n't find HTTP::Proxy module in http://ppm.activestate.com/PPMPackages/zips/8xx-builds-only/Windows/.
I found HTTP::Proxy module at CPAN and i installed using the following steps
perl Makefile.PL
nmake
nmake test
nmake install
The following error shown once the myproxy.pl file run and set IE setting for proxy as local host and port as 3128.
D:\perl programs>myproxy.pl Use of uninitialized value in pattern match (m//) at C:/Perl/site/lib/Email/MIME .pm line 90. Use of uninitialized value in pattern match (m//) at C:/Perl/site/lib/Email/MIME .pm line 90. Can't locate object method "query_param" via package "YMSG" (perhaps you forgot to load "YMSG"?) at C:/Perl/site/lib/HTTP/Recorder.pm line 347.
Then I Installed NET-YMSG module to overcome this. Still the same error shown.
can any body help me to overcome these problems.
One more thing i would like to ask i.e. Is there any ppm package is available for "Http::proxy" module?
And what are the other steps do i need to follow in order to get the http::recorder control panel
Thanks in advance
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.