i dont see how the java thing has anything to do with //tmp//proxy instead of /tmp/proxy...<br>
<br>
<br><br><div><span class="gmail_quote">On 12/25/05, <b class="gmail_sendername">jaya sim</b> &lt;<a href="mailto:jayasim_it@yahoo.com">jayasim_it@yahoo.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hi,<br>  &nbsp;&nbsp;&nbsp; if u use <br>  <pre><tt>$agent-&gt;file(&quot;//tmp//proxy&quot;); instead of $agent-&gt;file(&quot;/tmp/proxy&quot;);<br>it may work..<br></tt></pre>  <br><b><i><a href="mailto:http-recorder-request@lists.bestpractical.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http-recorder-request@lists.bestpractical.com</a></i></b> wrote:<blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">  Send HTTP-Recorder mailing list submissions to<br> <a href="mailto:http-recorder@lists.bestpractical.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http-recorder@lists.bestpractical.com</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br> <a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/http-recorder" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/http-recorder</a><br>or, via email, send a message with subject or body 'help' to<br> <a href="mailto:http-recorder-request@lists.bestpractical.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http-recorder-request@lists.bestpractical.com</a><br><br>You can reach the person managing the list at<br> <a href="mailto:http-recorder-owner@lists.bestpractical.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http-recorder-owner@lists.bestpractical.com</a><br><br>When replying, please edit your Subject line so it is more specific<br>than &quot;Re: Contents of HTTP-Recorder digest...&quot;<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 <br>Subject: [HTTP-Recorder] HTTP::Recorder can't go passed java as it
<br> seems<br>To: <a href="mailto:http-recorder@lists.bestpractical.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http-recorder@lists.bestpractical.com</a><br>Message-ID:<br> &lt;<a href="mailto:3ed55890512230405s71151bfeta2675883491e08b4@mail.gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
3ed55890512230405s71151bfeta2675883491e08b4@mail.gmail.com</a>&gt;<br>Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<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><a href="http://www.spanner.org/lists/osxperl/2005/08/22/905b481c.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.spanner.org/lists/osxperl/2005/08/22/905b481c.html</a><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(&quot;/tmp/proxy&quot;);<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 &quot;query_param&quot; via
 package<br>&quot;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&quot;
<br>(perhaps you forgot to load<br>&quot;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&quot;?)
<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 &quot;query_param&quot; via
 package<br>&quot;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&quot;
<br>(perhaps you forgot to load<br>&quot;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&quot;?)
<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('<a href="http://www.example.net/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.example.net/</a>') ;<br><br>$agent-&gt;get('<a href="http://www.example.net/index.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.example.net/index.html</a>')<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: <a href="http://lists.bestpractical.com/pipermail/http-recorder/attachments/20051223/68b0358d/attachment.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.bestpractical.com/pipermail/http-recorder/attachments/20051223/68b0358d/attachment.html</a><br><br>------------------------------<br><br>_______________________________________________<br>HTTP-Recorder mailing list
<br><a href="mailto:HTTP-Recorder@lists.bestpractical.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">HTTP-Recorder@lists.bestpractical.com</a><br><a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/http-recorder" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/http-recorder</a><br><br><br>End of
 HTTP-Recorder Digest, Vol 12, Issue 3<br>********************************************<br></blockquote><span class="ad"><br></span></div><span class="ad"><p>
                </p><hr size="1">Yahoo! for Good - 
<a href="http://us.rd.yahoo.com/mail_us/taglines/charity/*http://brand.yahoo.com/cybergivingweek2005/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Make a difference this year.</a> 
<p></p></span><br>_______________________________________________<br>HTTP-Recorder mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:HTTP-Recorder@lists.bestpractical.com">HTTP-Recorder@lists.bestpractical.com
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/http-recorder" target="_blank">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/http-recorder
</a><br><br><br></blockquote></div><br>