Why can&#39;t I get back the same full page as I do in firefox after a post?<br><br>I am trying to post data to <a href="https://www.sss.gov/RegVer/wfVerification.aspx">https://www.sss.gov/RegVer/wfVerification.aspx</a><br>
It is accepting the post, for both a valid record and a not found record, but the html code<br>I am getting back in mechanize is not complete as the code I am getting back in firefox view source.<br><br>In firefox the page works without javascript.<br>
<br>I read through the forum and tried google, but could not find answer.<br><br>Any help would be greatly appreciated.<br><br>Best Regards- Charles<br><br><br><br><br>pastie version of the same here<br><a href="http://pastie.caboo.se/private/0qsxcjzwunvijds0quuonq">http://pastie.caboo.se/private/0qsxcjzwunvijds0quuonq</a><br>
<br>require &#39;rubygems&#39;<br>require &#39;mechanize&#39;<br>agent = WWW::Mechanize.new<br>agent.user_agent_alias = &#39;Mac FireFox&#39;<br>agent.redirect_ok = true<br><br>page = agent.get(&#39;<a href="https://www.sss.gov/RegVer/wfVerification.aspx&#39;">https://www.sss.gov/RegVer/wfVerification.aspx&#39;</a>)<br>
sss_form = page.form(&#39;aspnetForm&#39;)<br>sss_form.[]=(&quot;_ctl0:ContentPlaceHolder1:tbSSAN&quot;, 555555999) <br>sss_form.[]=(&quot;_ctl0:ContentPlaceHolder1:tbLastName&quot;, &quot;Harvey&quot;)<br>sss_form.[]=(&quot;_ctl0:ContentPlaceHolder1:tbDOB&quot;, &quot;03251966&quot;)<br>
page = agent.submit(sss_form, sss_form.buttons[1])<br><br>###{#################################################################}#<br><br>If I do it with my real data I get a line in the returned code that says it was a success<br>
&nbsp; &gt;&gt; sss_form.[]=(&quot;_ctl0:ContentPlaceHolder1:tbSSAN&quot;, 510999999) <br>&nbsp; =&gt; 510565972<br>&nbsp; &gt;&gt; sss_form.[]=(&quot;_ctl0:ContentPlaceHolder1:tbLastName&quot;, &quot;Smith&quot;)<br>&nbsp; =&gt; &quot;Harvey&quot;<br>
&nbsp; &gt;&gt; sss_form.[]=(&quot;_ctl0:ContentPlaceHolder1:tbDOB&quot;, &quot;02021966&quot;)<br>&nbsp; =&gt; &quot;02051966&quot;<br>&nbsp; &gt;&gt; page = agent.submit(sss_form, sss_form.buttons[1])<br>&nbsp; =&gt; #&lt;WWW::Mechanize::Page<br>
&nbsp;&nbsp; {url<br>&nbsp;&nbsp;&nbsp; #&lt;URI::HTTPS:0x90d292 URL:<a href="https://www.sss.gov/RegVer/wfVerification.aspx">https://www.sss.gov/RegVer/wfVerification.aspx</a>&gt;}<br>&nbsp;&nbsp; {meta}<br>&nbsp;&nbsp; {title &quot;\r\n\tSelective Service System: Verification Receipt\r\n&quot;}<br>
&nbsp;&nbsp; {iframes}<br>##########################################&nbsp; <br>If I submit it with a fake name and SS# I get a field as accepting the post but returning as expected a no record found message.<br><br>&nbsp;&gt;&gt; page = agent.submit(sss_form, sss_form.buttons[1])<br>
&nbsp;=&gt; #&lt;WWW::Mechanize::Page<br>&nbsp; {url<br>&nbsp;&nbsp; #&lt;URI::HTTPS:0x909944 URL:<a href="https://www.sss.gov/RegVer/wfError.aspx?Message=NotFound_V&amp;src=VER">https://www.sss.gov/RegVer/wfError.aspx?Message=NotFound_V&amp;src=VER</a>&gt;}<br>
&nbsp; {meta}<br>&nbsp; {title &quot;\r\n\tSelective Service System: Registration Error\r\n&quot;}<br><br><br>But with either one I do not get back the same information in my firefox browser source namely:<br>&nbsp; <br>&nbsp; ******* From page source in firefox on a successful post - edited **********<br>
&nbsp; &lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;b&gt;Last Name:&lt;/b&gt;<br>&nbsp; &lt;span id=&quot;_ctl0_ContentPlaceHolder1_lblLastName&quot; class=&quot;registrationcopy_light&quot; style=&quot;font-style:italic;&quot;&gt;Harvey&lt;/span&gt;&lt;/font&gt;<br>
&nbsp; &lt;br /&gt;<br>&nbsp; &lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;b&gt;Social Security Number:&lt;/b&gt; <br>&nbsp; &lt;span id=&quot;_ctl0_ContentPlaceHolder1_lblSSAN&quot; class=&quot;registrationcopy_light&quot; style=&quot;font-style:italic;&quot;&gt;***&nbsp; -&nbsp; **&nbsp; -&nbsp; 5999&lt;/span&gt;&lt;/font&gt;<br>
&nbsp; &lt;br /&gt;<br>&nbsp; &lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;b&gt;Date of Birth:&lt;/b&gt;<br>&nbsp; &lt;span id=&quot;_ctl0_ContentPlaceHolder1_lblDOB&quot; class=&quot;registrationcopy_light&quot; style=&quot;font-style:italic;&quot;&gt;03/25/1966&lt;/span&gt;&lt;/font&gt;<br>
&nbsp; &lt;br /&gt;<br><br>&nbsp; &lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;b&gt;Selective Service Number:&lt;/b&gt;&lt;br /&gt;<br>&nbsp; &lt;span id=&quot;_ctl0_ContentPlaceHolder1_lblSSN&quot; style=&quot;font-style:normal;&quot;&gt;66-0175555-2&lt;/span&gt;&lt;br /&gt;<br>
<br>&nbsp; &lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;b&gt;Date of Registration&lt;br /&gt;<br>&nbsp; &lt;/b&gt;<br>&nbsp; &lt;span id=&quot;_ctl0_ContentPlaceHolder1_lblAccessionDate&quot; style=&quot;font-style:normal;&quot;&gt;4/9/1984&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;<br>
&nbsp; *********************************************************************************************************<br><br><br><br><br><br>&nbsp; ******* From page source in firefox on a&nbsp; post that does not have a valid record- edited **********<br>
<br>&nbsp; &lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;<br><br>&nbsp; &lt;span id=&quot;_ctl0_ContentPlaceHolder1_lblErrorTitle&quot; class=&quot;validation2&quot;&gt;Sorry. &lt;/span&gt;<br>&nbsp; &lt;br /&gt;<br>&nbsp; &lt;span id=&quot;_ctl0_ContentPlaceHolder1_lblErrorDetail&quot; class=&quot;registrationcopy_light&quot;&gt;Based on the information you submitted (information listed below), a registration record cannot be found for this individual.&lt;/span&gt;<br>
&nbsp; &lt;span id=&quot;_ctl0_ContentPlaceHolder1_lblErrorDetail2&quot; class=&quot;registrationcopy_light&quot;&gt;&lt;br&gt;&lt;br&gt;If you made a mistake when entering data, please try a &lt;/span&gt;<br>&nbsp; &lt;span id=&quot;_ctl0_ContentPlaceHolder1_lblErrorDetail3&quot; class=&quot;registrationcopy_light&quot;&gt;&lt;/span&gt;<br>
&nbsp; &lt;a id=&quot;_ctl0_ContentPlaceHolder1_lnkError1&quot; class=&quot;registrationcopy_light&quot; href=&quot;wfVerification.aspx&quot;&gt;New Search&lt;/a&gt;<br>&nbsp; &lt;span id=&quot;_ctl0_ContentPlaceHolder1_lblErrorDetail4&quot; class=&quot;registrationcopy_light&quot;&gt;&lt;/span&gt;<br>
<br>&nbsp; &lt;a id=&quot;_ctl0_ContentPlaceHolder1_lnkError2&quot; class=&quot;registrationcopy_light&quot;&gt;&lt;/a&gt;<br>&nbsp; &lt;span id=&quot;_ctl0_ContentPlaceHolder1_lblErrorDetail5&quot; class=&quot;registrationcopy_light&quot;&gt;. If you entered the data correctly, there are several reasons why the registration may not be verifiable at this time. Please dial 1-847-688-3117 for further information.&lt;/span&gt;<br>
&nbsp; &lt;span id=&quot;_ctl0_ContentPlaceHolder1_lblTimeStamp&quot; class=&quot;timestamp&quot;&gt;(2/29/2008 11:09:16 AM)&lt;/span&gt;&lt;em&gt;&lt;/em&gt;&lt;/font&gt;&lt;/td&gt;<br><br>&nbsp; &lt;span id=&quot;_ctl0_ContentPlaceHolder1_lblLastName&quot; class=&quot;registrationcopy&quot;&gt;&lt;br&gt;&lt;br&gt;Last Name: &lt;/span&gt;<br>
<br>&nbsp; &lt;span id=&quot;_ctl0_ContentPlaceHolder1_lblLastName2&quot; class=&quot;registrationcopy_light&quot;&gt;Smith&lt;br&gt;&lt;/span&gt;&lt;br /&gt;<br>&nbsp; &lt;span id=&quot;_ctl0_ContentPlaceHolder1_lblSSAN&quot; class=&quot;registrationcopy&quot;&gt;Social Security Number: &lt;/span&gt;<br>
&nbsp; &lt;span id=&quot;_ctl0_ContentPlaceHolder1_lblSSAN2&quot; class=&quot;registrationcopy_light&quot;&gt;***&nbsp; -&nbsp; **&nbsp; -&nbsp; 5999&lt;br&gt;&lt;/span&gt;<br>&nbsp; &lt;span id=&quot;_ctl0_ContentPlaceHolder1_lblSSN3&quot; class=&quot;registrationcopy&quot;&gt;&lt;/span&gt;<br>
&nbsp; &lt;span id=&quot;_ctl0_ContentPlaceHolder1_lblSSN4&quot; class=&quot;registrationcopy_light&quot;&gt;&lt;/span&gt;&lt;br /&gt;<br>&nbsp; &lt;span id=&quot;_ctl0_ContentPlaceHolder1_lblDOB&quot; class=&quot;registrationcopy&quot;&gt;Date of Birth: &lt;/span&gt;<br>
&nbsp; &lt;span id=&quot;_ctl0_ContentPlaceHolder1_lblDOB2&quot; class=&quot;registrationcopy_light&quot;&gt;03/25/1966&lt;br&gt;&lt;/span&gt;&lt;br /&gt;<br><br>&nbsp; &lt;span id=&quot;_ctl0_ContentPlaceHolder1_lblErrorDetail6&quot; class=&quot;registrationcopy_light&quot;&gt;&lt;/span&gt;<br>
&nbsp; &lt;a id=&quot;_ctl0_ContentPlaceHolder1_lnkError3&quot; class=&quot;registrationcopy_light&quot;&gt;&lt;/a&gt;&amp;nbsp;<br>&nbsp; <br>&nbsp; <br><br><br>
pastie version of the same here<br>
<a href="http://pastie.caboo.se/private/0qsxcjzwunvijds0quuonq">http://pastie.caboo.se/private/0qsxcjzwunvijds0quuonq</a><br>&nbsp; <br>&nbsp;<br>