[HTTP-Recorder] Not opening control panel window and Not creating
Log File
Zaw Win Htike
zawwinhtike at gmail.com
Thu Aug 25 01:04:40 EDT 2005
When I run the following code, it generate only printed message, seems like
nothing is happening for opening control panel window and creating log file.
Can someone help?
here is my code
###############################################################
#!/usr/bin/perl
use HTTP::Proxy;
use HTTP::Recorder;
print "Creating http:proxy \n";
my $proxy = HTTP::Proxy->new();
# create a new HTTP::Recorder object
print "Creating http::recorder \n";
my $agent = new HTTP::Recorder(file => "/tmp/myLogfile");
print "calling showwindow function \n";
showwindow => 1;
# spare futile attempts at accessing control panel
print "setting control panel setting \n";
control => "http://http-recorder/";
# set the log file (optional)
#$agent->file("/tmp/myLogfile");
# set HTTP::Recorder as the agent for the proxy
print "The proxy is - $proxy \n";
$proxy->port( 8080 );
$proxy->agent( $agent );
# start the proxy
print "starting proxy \n";
$proxy->start();
1;
###############################################################
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bestpractical.com/pipermail/http-recorder/attachments/20050825/75022cab/attachment.htm
More information about the HTTP-Recorder
mailing list