<?xml version="1.0" encoding="windows-1252"?>
<node id="928372" title="Re: Perl and Javascript" created="2011-09-28 13:02:42" updated="2011-09-28 13:02:42">
<type id="11">
note</type>
<author id="630086">
technojosh</author>
<data>
<field name="doctext">
With a little more info about the REQUEST/RESPONSE sequences, I think I can help. Your post is kind of unclear... (&lt;a href="http://perlmonks.org/?node_id=174051"&gt;How do I post a question effectively?&lt;/a&gt;)
&lt;p&gt;
1. use &lt;a href="http://search.cpan.org/~jesse/WWW-Mechanize-1.68/lib/WWW/Mechanize.pm"&gt;WWW::Mechanize&lt;/a&gt; (no need for Firefox specifics, I don't think.  Its ok to use Firebug to "discover" how to automate a process, but it doesnt' really tie you to firefox after that point)
&lt;br&gt;
2. you seem to indicate you are able to pull the new, random URL you need from sso.gen??
&lt;/p&gt;
&lt;p&gt;
*If* #2 is true, or at least close to reality, you should be able to parse that random URL and load it through a second GET request (I think that is what you are asking for in #3??)
&lt;/p&gt;
If #2 is not true, then I think that will be your focus.  If you get sso.gen successfully, are you able to successfully parse this random URL from the javascript? the "GET" method returns a &lt;a href="http://search.cpan.org/~gaas/HTTP-Message-6.02/lib/HTTP/Response.pm"&gt;HTTP::Response&lt;/a&gt; object, can you learn anything from that?&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-630086"&gt;
&lt;a href="http://www.perlmonks.org/?node=technojosh"&gt;&lt;i&gt;
-TJ
&lt;/i&gt;
&lt;/a&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
928017</field>
<field name="parent_node">
928017</field>
</data>
</node>
