<div id="RTEContent">Hi,<br>  &nbsp;&nbsp;&nbsp; if u use <br>  <pre><tt>$agent-&gt;file("//tmp//proxy"); instead of $agent-&gt;file("/tmp/proxy");<br>it may work..<br></tt></pre>  <br><b><i>http-recorder-request@lists.bestpractical.com</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">  Send HTTP-Recorder mailing list submissions to<br> http-recorder@lists.bestpractical.com<br><br>To subscribe or unsubscribe via the World Wide Web, visit<br> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/http-recorder<br>or, via email, send a message with subject or body 'help' to<br> http-recorder-request@lists.bestpractical.com<br><br>You can reach the person managing the list at<br> http-recorder-owner@lists.bestpractical.com<br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of HTTP-Recorder digest..."<br><br><br>Today's Topics:<br><br>   1. HTTP::Recorder can't go
 passed java as it seems (liran tal)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Fri, 23 Dec 2005 14:05:31 +0200<br>From: liran tal <liransgarage @gmail.com=""><br>Subject: [HTTP-Recorder] HTTP::Recorder can't go passed java as it<br> seems<br>To: http-recorder@lists.bestpractical.com<br>Message-ID:<br> &lt;3ed55890512230405s71151bfeta2675883491e08b4@mail.gmail.com&gt;<br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Hey guys,<br><br>I'm using the cpan version - HTTP::Recorder 0.05 with the following code:<br><br>   #!/usr/bin/perl<br><br>   use HTTP::Proxy;<br>   use HTTP::Recorder;<br>   use URI::QueryParam;<br>                                           # we're adding this to enable<br>login pages as according<br>                                           # solutions at:<br>http://www.spanner.org/lists/osxperl/2005/08/22/905b481c.html<br><br>   my $proxy = HTTP::Proxy-&gt;new();<br><br>   # create a new
 HTTP::Recorder object<br>   my $agent = new HTTP::Recorder;<br><br>   # set the log file (optional)<br>    $agent-&gt;file("/tmp/proxy");<br><br>   # set HTTP::Recorder as the agent for the proxy<br>   $proxy-&gt;agent( $agent );<br><br>   # start the proxy<br>   $proxy-&gt;start();<br><br>   1;<br><br><br><br>when I try to login to a website which is (i assume) java enabled,<br>HTTP::Recorder stumbles upon some<br>errors or missing some libraries maybe.<br><br>Here's the output:<br><br>Use of uninitialized value in substitution (s///) at<br>/usr/local/share/perl/5.8.4 /HTTP/Recorder/Logger.pm line 171.<br>Use of uninitialized value in concatenation (.) or string at<br>/usr/local/share/perl/5.8.4/HTTP/Recorder/Logger.pm line 173.<br>Can't locate object method "query_param" via
 package<br>"rec-action=submitform&amp;rec-formname=p&amp;rec-formnumber=1&amp;rec-form1-unknown-userName=1&amp;userName=colloron&amp;rec-form1-password-password=1&amp;password=t040682&amp;rec-form1-unknown-language=1&amp;language=&amp;rec-form1-image-refresh=1&amp;refresh.x=113&amp;refresh.y=9"<br>(perhaps you forgot to load<br>"rec-action=submitform&amp;rec-formname=p&amp;rec-formnumber=1&amp;rec-form1-unknown-userName=1&amp;userName=colloron&amp;rec-form1-password-password=1&amp;password=t040682&amp;rec-form1-unknown-language=1&amp;language=&amp;rec-form1-image-refresh=1&amp;refresh.x=113&amp;refresh.y=9"?)<br>at /usr/local/share/perl/5.8.4/HTTP/Recorder.pm line 347.<br>Use of uninitialized value in substitution (s///) at<br>/usr/local/share/perl/5.8.4/HTTP/Recorder/Logger.pm line 171.<br>Use of uninitialized value in concatenation (.) or string at<br>/usr/local/share/perl/5.8.4/HTTP/Recorder/Logger.pm line 173.<br>Can't locate object method "query_param" via
 package<br>"rec-action=submitform&amp;rec-formname=p&amp;rec-formnumber=1<br>&amp;rec-form1-unknown-userName=1&amp;userName=colloron&amp;rec-form1-password-password=1&amp;password=t040682&amp;rec-form1-unknown-language=1&amp;language=&amp;rec-form1-image-refresh=1&amp;refresh.x=113&amp;refresh.y=9"<br>(perhaps you forgot to load<br>"rec-action=submitform&amp;rec-formname=p&amp;rec-formnumber=1&amp;rec-form1-unknown-userName=1&amp;userName=colloron&amp;rec-form1-password-password=1&amp;password=t040682&amp;rec-form1-unknown-language=1&amp;language=&amp;rec-form1-image-refresh=1&amp;refresh.x=113&amp;refresh.y=9"?)<br>at /usr/local/share/perl/5.8.4/HTTP/Recorder.pm line 347.<br>Use of uninitialized value in substitution (s///) at<br>/usr/local/share/perl/5.8.4/HTTP/Recorder/Logger.pm line 171.<br><br><br>While the appending to the log file seems just fine, but it won't go passed<br>it:<br><br><br>liran@octave:~/Programming/perls$ tail -f
 /tmp/proxy<br><br>$agent-&gt;get('http://www.example.net/') <http:>;<br><br>$agent-&gt;get('http://www.example.net/index.html')<http:><br>;<br>$agent-&gt;form_name('p');<br>$agent-&gt;field('password', '123123');<br>$agent-&gt;field('language', '');<br>$agent-&gt;field('userName', 'test');<br>$agent-&gt;click();<br><br>$agent-&gt;form_name('p');<br>$agent-&gt;field('password', '123123');<br>$agent-&gt;field('language', '');<br>$agent-&gt;field('userName', 'test');<br>$agent-&gt;click();<br><br><br><br>Any comment is welcome.<br>thanks.<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: http://lists.bestpractical.com/pipermail/http-recorder/attachments/20051223/68b0358d/attachment.html<br><br>------------------------------<br><br>_______________________________________________<br>HTTP-Recorder mailing list<br>HTTP-Recorder@lists.bestpractical.com<br>http://lists.bestpractical.com/cgi-bin/mailman/listinfo/http-recorder<br><br><br>End of
 HTTP-Recorder Digest, Vol 12, Issue 3<br>********************************************<br></http:></http:></liransgarage></blockquote><br></div><p>
                <hr size=1>Yahoo! for Good - 
<a href="http://us.rd.yahoo.com/mail_us/taglines/charity/*http://brand.yahoo.com/cybergivingweek2005/">Make a difference this year.</a>