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> <<a href="mailto:jayasim_it@yahoo.com">jayasim_it@yahoo.com</a>> 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> if u use <br> <pre><tt>$agent->file("//tmp//proxy"); instead of $agent->file("/tmp/proxy");<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 "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 <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> <<a href="mailto:3ed55890512230405s71151bfeta2675883491e08b4@mail.gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
3ed55890512230405s71151bfeta2675883491e08b4@mail.gmail.com</a>><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><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->new();
<br><br> # create a new
HTTP::Recorder object<br> my $agent = new HTTP::Recorder;<br><br> # set the log file (optional)<br> $agent->file("/tmp/proxy");<br><br> # set HTTP::Recorder as the agent for the proxy<br> $proxy->agent( $agent );
<br><br> # start the proxy<br> $proxy->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&rec-formname=p&rec-formnumber=1&rec-form1-unknown-userName=1&userName=colloron&rec-form1-password-password=1&password=t040682&rec-form1-unknown-language=1&language=&rec-form1-image-refresh=1&refresh.x=113&refresh.y=9"
<br>(perhaps you forgot to load<br>"rec-action=submitform&rec-formname=p&rec-formnumber=1&rec-form1-unknown-userName=1&userName=colloron&rec-form1-password-password=1&password=t040682&rec-form1-unknown-language=1&language=&rec-form1-image-refresh=1&refresh.x=113&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&rec-formname=p&rec-formnumber=1<br>&rec-form1-unknown-userName=1&userName=colloron&rec-form1-password-password=1&password=t040682&rec-form1-unknown-language=1&language=&rec-form1-image-refresh=1&refresh.x=113&refresh.y=9"
<br>(perhaps you forgot to load<br>"rec-action=submitform&rec-formname=p&rec-formnumber=1&rec-form1-unknown-userName=1&userName=colloron&rec-form1-password-password=1&password=t040682&rec-form1-unknown-language=1&language=&rec-form1-image-refresh=1&refresh.x=113&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->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->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->form_name('p');<br>$agent->field('password', '123123');<br>$agent->field('language', '');<br>$agent->field('userName', 'test');<br>$agent->click();<br>
<br>$agent->form_name('p');<br>$agent->field('password', '123123');<br>$agent->field('language', '');<br>$agent->field('userName', 'test');<br>$agent->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>