For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > September 2006 > using http::recorder









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author using http::recorder
Nospam

2006-09-27, 7:01 pm

My apologies for my newbie question, but I am looking at http::recorder, and
the readme guide says this:

my $proxy = HTTP::Proxy->new;
# set HTTP::Recorder as the agent
my $agent = HTTP::Recorder->new( file => "/tmp/tmpfile" );
$proxy->agent( $agent );
$proxy->start();

I am wondering if I place the proxy in:
$proxy->start('proxy:port');
?

I am also looking at using selenium with javascript to follow a link that is
a javascript link where the text regex is:

follow_link( text_regex => qr/Articles/i );

Anyhelp will be greatly appreciated


J. Gleixner

2006-09-28, 6:59 pm

Nospam wrote:
> My apologies for my newbie question, but I am looking at http::recorder, and
> the readme guide says this:
>
> my $proxy = HTTP::Proxy->new;
> # set HTTP::Recorder as the agent
> my $agent = HTTP::Recorder->new( file => "/tmp/tmpfile" );
> $proxy->agent( $agent );
> $proxy->start();
>
> I am wondering if I place the proxy in:
> $proxy->start('proxy:port');
> ?


Just after the example, the documentation for HTTP::Recorder shows, "For
more information about proxy settings and the default port, see ..."

The documentation is where you'll find your answer.

>
> I am also looking at using selenium with javascript to follow a link that is
> a javascript link where the text regex is:
>
> follow_link( text_regex => qr/Articles/i );


Well that's good. Thanks for sharing.

>
> Anyhelp will be greatly appreciated
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com