Hello Aaron,<br><br><div><span class="gmail_quote">On 5/23/07, <b class="gmail_sendername">Aaron Patterson</b> &lt;<a href="mailto:aaron@tenderlovemaking.com">aaron@tenderlovemaking.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;">
Hello Michael,<br><br>On Wed, May 23, 2007 at 02:27:32PM -0400, Michael Guterl wrote:<br>&gt; Trying to submit a form is resulting in the following error:<br>&gt;&lt;SNIP&gt;<br>&gt;<br>&gt; I&#39;d be happy to provide any other information needed to help debug the
<br>&gt; problem.<br><br>Can you possibly send a small script that I can run to reproduce the<br>problem?&nbsp;&nbsp;I can&#39;t tell exactly what the issue is from the stack trace.<br>Also, setting the logger on mechanize and sending in the logs would help
<br>too.</blockquote><div><br>Here&#39;s the script with censored URL...&nbsp; Let me know if you need anything else.<br><br>Thanks again for the great library!<br><br>require &#39;mechanize&#39;<br>require &#39;logger&#39;<br>
<br>agent = WWW::Mechanize.new<br>agent.log = Logger.new(File.new(&quot;debug.log&quot;, &quot;w+&quot;))<br>page = agent.get(&quot;<a href="https://censored.com/dealerApply/">https://censored.com/dealerApply/</a>&quot;)<br>
form = page.forms.first<br>form.fields.name(&#39;clientID&#39;).options[1].select<br>page = agent.submit(form, form.buttons.first)<br><br>I, [2007-05-24T09:02:03.617629 #1248]&nbsp; INFO -- : Net::HTTP::Get: /dealerApply/<br>D, [2007-05-24T09:02:
03.812380 #1248] DEBUG -- : request-header: accept-language =&gt; en-us,en;q0.5<br>D, [2007-05-24T09:02:03.812640 #1248] DEBUG -- : request-header: connection =&gt; keep-alive<br>D, [2007-05-24T09:02:03.812927 #1248] DEBUG -- : request-header: accept =&gt; */*
<br>D, [2007-05-24T09:02:03.813076 #1248] DEBUG -- : request-header: accept-encoding =&gt; gzip,identity<br>D, [2007-05-24T09:02:03.813224 #1248] DEBUG -- : request-header: user-agent =&gt; WWW-Mechanize/0.6.8 (<a href="http://rubyforge.org/projects/mechanize/">
http://rubyforge.org/projects/mechanize/</a>)<br>D, [2007-05-24T09:02:03.813386 #1248] DEBUG -- : request-header: accept-charset =&gt; ISO-8859-1,utf-8;q=0.7,*;q=0.7<br>D, [2007-05-24T09:02:03.813531 #1248] DEBUG -- : request-header: keep-alive =&gt; 300
<br>D, [2007-05-24T09:02:03.976138 #1248] DEBUG -- : Read 782 bytes<br>D, [2007-05-24T09:02:03.977916 #1248] DEBUG -- : Read 1806 bytes<br>D, [2007-05-24T09:02:03.979310 #1248] DEBUG -- : Read 2830 bytes<br>D, [2007-05-24T09:02:
04.012022 #1248] DEBUG -- : Read 3854 bytes<br>D, [2007-05-24T09:02:04.013683 #1248] DEBUG -- : Read 4072 bytes<br>D, [2007-05-24T09:02:04.015736 #1248] DEBUG -- : Read 5091 bytes<br>D, [2007-05-24T09:02:04.031072 #1248] DEBUG -- : Read 6115 bytes
<br>D, [2007-05-24T09:02:04.032569 #1248] DEBUG -- : Read 7139 bytes<br>D, [2007-05-24T09:02:04.033803 #1248] DEBUG -- : Read 8144 bytes<br>D, [2007-05-24T09:02:04.042607 #1248] DEBUG -- : Read 9163 bytes<br>D, [2007-05-24T09:02:
04.047887 #1248] DEBUG -- : Read 10187 bytes<br>D, [2007-05-24T09:02:04.049675 #1248] DEBUG -- : Read 11211 bytes<br>D, [2007-05-24T09:02:04.051657 #1248] DEBUG -- : Read 12216 bytes<br>D, [2007-05-24T09:02:04.054323 #1248] DEBUG -- : Read 13235 bytes
<br>D, [2007-05-24T09:02:04.060651 #1248] DEBUG -- : Read 14259 bytes<br>D, [2007-05-24T09:02:04.063685 #1248] DEBUG -- : Read 15283 bytes<br>D, [2007-05-24T09:02:04.065266 #1248] DEBUG -- : Read 16288 bytes<br>D, [2007-05-24T09:02:
04.067075 #1248] DEBUG -- : Read 17307 bytes<br>D, [2007-05-24T09:02:04.068794 #1248] DEBUG -- : Read 18331 bytes<br>D, [2007-05-24T09:02:04.070233 #1248] DEBUG -- : Read 18580 bytes<br>D, [2007-05-24T09:02:04.080093 #1248] DEBUG -- : response-header: content-type =&gt; text/html
<br>D, [2007-05-24T09:02:04.080353 #1248] DEBUG -- : response-header: date =&gt; Thu, 24 May 2007 13:02:00 GMT<br>D, [2007-05-24T09:02:04.080460 #1248] DEBUG -- : response-header: server =&gt; Sun-ONE-Web-Server/6.1<br>D, [2007-05-24T09:02:
04.080546 #1248] DEBUG -- : response-header: set-cookie =&gt; JSESSIONID=GVMLvHJPBZpnnGgWtdC4JnDQ7mKd9JvXxHrRYS6qzvwn5J1BKw7g!1550566276; path=/<br>D, [2007-05-24T09:02:04.080627 #1248] DEBUG -- : response-header: transfer-encoding =&gt; chunked
<br>D, [2007-05-24T09:02:04.428956 #1248] DEBUG -- : saved cookie: JSESSIONID=GVMLvHJPBZpnnGgWtdC4JnDQ7mKd9JvXxHrRYS6qzvwn5J1BKw7g!1550566276<br>I, [2007-05-24T09:02:04.429241 #1248]&nbsp; INFO -- : status: 200<br>D, [2007-05-24T09:03:
23.612829 #1248] DEBUG -- : query: &quot;action=start&amp;quick=Y&amp;clientApp=0&amp;clientID=ACE&quot;<br>I, [2007-05-24T09:03:23.613051 #1248]&nbsp; INFO -- : Net::HTTP::Post: /dealerApply/controller.jsp<br>D, [2007-05-24T09:03:
23.613420 #1248] DEBUG -- : using cookie: JSESSIONID=GVMLvHJPBZpnnGgWtdC4JnDQ7mKd9JvXxHrRYS6qzvwn5J1BKw7g!1550566276<br>D, [2007-05-24T09:03:23.613737 #1248] DEBUG -- : request-header: accept-language =&gt; en-us,en;q0.5<br>
D, [2007-05-24T09:03:23.613838 #1248] DEBUG -- : request-header: connection =&gt; keep-alive<br>D, [2007-05-24T09:03:23.613917 #1248] DEBUG -- : request-header: accept =&gt; */*<br>D, [2007-05-24T09:03:23.613993 #1248] DEBUG -- : request-header: accept-encoding =&gt; gzip,identity
<br>D, [2007-05-24T09:03:23.614070 #1248] DEBUG -- : request-header: user-agent =&gt; WWW-Mechanize/0.6.8 (<a href="http://rubyforge.org/projects/mechanize/">http://rubyforge.org/projects/mechanize/</a>)<br>D, [2007-05-24T09:03:
23.614149 #1248] DEBUG -- : request-header: content-type =&gt; application/x-www-form-urlencoded<br>D, [2007-05-24T09:03:23.614227 #1248] DEBUG -- : request-header: cookie =&gt; JSESSIONID=GVMLvHJPBZpnnGgWtdC4JnDQ7mKd9JvXxHrRYS6qzvwn5J1BKw7g!1550566276
<br>D, [2007-05-24T09:03:23.614304 #1248] DEBUG -- : request-header: referer =&gt; <a href="https://censored.com/dealerApply/">https://censored.com/dealerApply/</a><br>D, [2007-05-24T09:03:23.614382 #1248] DEBUG -- : request-header: accept-charset =&gt; ISO-8859-1,utf-8;q=
0.7,*;q=0.7<br>D, [2007-05-24T09:03:23.615138 #1248] DEBUG -- : request-header: content-length =&gt; 45<br>D, [2007-05-24T09:03:23.615277 #1248] DEBUG -- : request-header: keep-alive =&gt; 300<br><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
--<br>Aaron Patterson<br><a href="http://tenderlovemaking.com/">http://tenderlovemaking.com/</a><br>_______________________________________________<br>Mechanize-users mailing list<br><a href="mailto:Mechanize-users@rubyforge.org">
Mechanize-users@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/mechanize-users">http://rubyforge.org/mailman/listinfo/mechanize-users</a><br></blockquote></div><br>Thanks,<br>Michael Guterl<br><br>