<font class="fixed_width" face="Courier, Monospaced">I'm trying to submit data in JSPWiki (edit page). I can read the data <br> in the form, but nothings get saved when I submit the page. Cancel <br> doesn't work either. I don't get any errors. There is no JavaScript 
<br> used to submit the form. <br> </font><p><font class="fixed_width" face="Courier, Monospaced">After I'm logged in I do the following: <br> </font></p><p><font class="fixed_width" face="Courier, Monospaced">def save(page, content) 
<br> &nbsp; &nbsp; @agent.get(@base_url + &quot;Edit.jsp?page=#{page}&quot;) <br> &nbsp; &nbsp; form = @agent.page.forms.with.name('editForm') <br> &nbsp; &nbsp; form.fields.name('_editedtext').value = content <br> &nbsp; &nbsp; form.submit(form.buttons.first) 
<br> end <br> </font></p><p><font class="fixed_width" face="Courier, Monospaced">And this is the cancel method (the @agent already got the edit page) <br> </font></p><p><font class="fixed_width" face="Courier, Monospaced">
def cancel <br> &nbsp; &nbsp; form = @agent.page.forms.with.name('editForm') <br> &nbsp; &nbsp; form.submit(form.buttons.name('cancel')) <br> end &nbsp; &nbsp; <br> </font></p><font class="fixed_width" face="Courier, Monospaced">Michele<br><br><br>NOTE: I'm guessing that the problem could be that some header data is wrong or missing, which causes JSPWiki not to handle the request.
<br><br><br><span style="font-weight: bold;">logfile</span><br><br>&nbsp;INFO mech: Net::HTTP::Get: http://[A URL]:880/coswiki/Login.jsp<br>DEBUG mech: request-header: accept =&gt; */*<br>DEBUG mech: request-header: accept-encoding =&gt; gzip,identity
<br>DEBUG mech: request-header: user-agent =&gt; Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6<br>DEBUG mech: response-header: date =&gt; Wed, 11 Oct 2006 08:01:33 GMT<br>DEBUG mech: response-header: content-type =&gt; text/html;charset=UTF-8
<br>DEBUG mech: response-header: server =&gt; Apache-Coyote/1.1<br>DEBUG mech: response-header: content-length =&gt; 7968<br>DEBUG mech: response-header: set-cookie =&gt; JSESSIONID=C08FB593CBE5508710F02C4AFAEEA09F; Path=/coswiki
<br>DEBUG mech: saved cookie: JSESSIONID=C08FB593CBE5508710F02C4AFAEEA09F<br>&nbsp;INFO mech: status: 200<br>DEBUG mech: query: &quot;j_username=red&amp;j_password=red&amp;page=Login&amp;action=login&quot;<br>&nbsp;INFO mech: Net::HTTP::Post: http://[A URL]:880/coswiki/Login.jsp
<br>DEBUG mech: using cookie: JSESSIONID=C08FB593CBE5508710F02C4AFAEEA09F<br>DEBUG mech: request-header: accept =&gt; */*<br>DEBUG mech: request-header: accept-encoding =&gt; gzip,identity<br>DEBUG mech: request-header: user-agent =&gt; Mozilla/5.0 (Windows; U; Windows NT 
5.0; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6<br>DEBUG mech: request-header: content-type =&gt; application/x-www-form-urlencoded<br>DEBUG mech: request-header: cookie =&gt; JSESSIONID=C08FB593CBE5508710F02C4AFAEEA09F
<br>DEBUG mech: request-header: referer =&gt; http://[A URL]:880/coswiki/Login.jsp<br>DEBUG mech: request-header: content-length =&gt; 53<br>DEBUG mech: response-header: date =&gt; Wed, 11 Oct 2006 08:01:33 GMT<br>DEBUG mech: response-header: content-type =&gt; text/html
<br>DEBUG mech: response-header: server =&gt; Apache-Coyote/1.1<br>DEBUG mech: response-header: content-length =&gt; 0<br>DEBUG mech: response-header: set-cookie =&gt; JSPWikiAssertedName=Red; Expires=Wed, 08-Jul-2009 08:01:34 GMT
<br>DEBUG mech: response-header: location =&gt; http://[A URL]:880/coswiki/Wiki.jsp<br>DEBUG mech: saved cookie: JSPWikiAssertedName=Red<br>&nbsp;INFO mech: status: 302<br>&nbsp;INFO mech: follow redirect to: http://[A URL]:880/coswiki/Wiki.jsp
<br>&nbsp;INFO mech: Net::HTTP::Get: http://[A URL]:880/coswiki/Wiki.jsp<br>DEBUG mech: using cookie: JSESSIONID=C08FB593CBE5508710F02C4AFAEEA09F<br>DEBUG mech: request-header: accept =&gt; */*<br>DEBUG mech: request-header: accept-encoding =&gt; gzip,identity
<br>DEBUG mech: request-header: user-agent =&gt; Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6<br>DEBUG mech: request-header: cookie =&gt; JSESSIONID=C08FB593CBE5508710F02C4AFAEEA09F
<br>DEBUG mech: request-header: referer =&gt; http://[A URL]:880/coswiki/Login.jsp<br>DEBUG mech: response-header: date =&gt; Wed, 11 Oct 2006 08:01:33 GMT<br>DEBUG mech: response-header: content-type =&gt; text/html;charset=UTF-8
<br>DEBUG mech: response-header: server =&gt; Apache-Coyote/1.1<br>DEBUG mech: response-header: content-length =&gt; 15873<br>&nbsp;INFO mech: status: 200<br>&nbsp;INFO mech: Net::HTTP::Get: http://[A URL]:880/coswiki/Edit.jsp?page=OldWikiNewWikiDiff
<br>DEBUG mech: using cookie: JSESSIONID=C08FB593CBE5508710F02C4AFAEEA09F<br>DEBUG mech: request-header: accept =&gt; */*<br>DEBUG mech: request-header: accept-encoding =&gt; gzip,identity<br>DEBUG mech: request-header: user-agent =&gt; Mozilla/5.0 (Windows; U; Windows NT 
5.0; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6<br>DEBUG mech: request-header: cookie =&gt; JSESSIONID=C08FB593CBE5508710F02C4AFAEEA09F<br>DEBUG mech: request-header: referer =&gt; http://[A URL]:880/coswiki/Wiki.jsp
<br>DEBUG mech: response-header: last-modified =&gt; Wed, 11 Oct 2006 08:01:34 GMT<br>DEBUG mech: response-header: cache-control =&gt; max-age=0<br>DEBUG mech: response-header: expires =&gt; Wed, 11 Oct 2006 08:01:34 GMT<br>
DEBUG mech: response-header: date =&gt; Wed, 11 Oct 2006 08:01:33 GMT<br>DEBUG mech: response-header: content-type =&gt; text/html;charset=UTF-8<br>DEBUG mech: response-header: server =&gt; Apache-Coyote/1.1<br>DEBUG mech: response-header: content-length =&gt; 16598
<br>&nbsp;INFO mech: status: 200<br>DEBUG mech: query: &quot;page=OldWikiNewWikiDiff&amp;action=save&amp;edittime=1160553663011&amp;_editedtext=Hello+Knucklehead&quot;<br>&nbsp;INFO mech: Net::HTTP::Post: http://[A URL]:880/coswiki/Edit.jsp?page=OldWikiNewWikiDiff
<br>DEBUG mech: using cookie: JSESSIONID=C08FB593CBE5508710F02C4AFAEEA09F<br>DEBUG mech: request-header: accept =&gt; */*<br>DEBUG mech: request-header: accept-encoding =&gt; gzip,identity<br>DEBUG mech: request-header: user-agent =&gt; Mozilla/5.0 (Windows; U; Windows NT 
5.0; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6<br>DEBUG mech: request-header: content-type =&gt; application/x-www-form-urlencoded<br>DEBUG mech: request-header: cookie =&gt; JSESSIONID=C08FB593CBE5508710F02C4AFAEEA09F
<br>DEBUG mech: request-header: referer =&gt; http://[A URL]:880/coswiki/Edit.jsp?page=OldWikiNewWikiDiff<br>DEBUG mech: request-header: content-length =&gt; 88<br>DEBUG mech: response-header: last-modified =&gt; Wed, 11 Oct 2006 08:01:34 GMT
<br>DEBUG mech: response-header: cache-control =&gt; max-age=0<br>DEBUG mech: response-header: expires =&gt; Wed, 11 Oct 2006 08:01:34 GMT<br>DEBUG mech: response-header: date =&gt; Wed, 11 Oct 2006 08:01:34 GMT<br>DEBUG mech: response-header: content-type =&gt; text/html;charset=UTF-8
<br>DEBUG mech: response-header: server =&gt; Apache-Coyote/1.1<br>DEBUG mech: response-header: content-length =&gt; 16579<br>&nbsp;INFO mech: status: 200<br>&nbsp;INFO mech: Net::HTTP::Get: http://[A URL]:880/coswiki/Logout.jsp<br>
DEBUG mech: using cookie: JSESSIONID=C08FB593CBE5508710F02C4AFAEEA09F<br>DEBUG mech: request-header: accept =&gt; */*<br>DEBUG mech: request-header: accept-encoding =&gt; gzip,identity<br>DEBUG mech: request-header: user-agent =&gt; Mozilla/5.0 (Windows; U; Windows NT 
5.0; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6<br>DEBUG mech: request-header: cookie =&gt; JSESSIONID=C08FB593CBE5508710F02C4AFAEEA09F<br>DEBUG mech: request-header: referer =&gt; http://[A URL]:880/coswiki/Edit.jsp?page=OldWikiNewWikiDiff
<br>DEBUG mech: response-header: date =&gt; Wed, 11 Oct 2006 08:01:34 GMT<br>DEBUG mech: response-header: content-type =&gt; text/html<br>DEBUG mech: response-header: server =&gt; Apache-Coyote/1.1<br>DEBUG mech: response-header: content-length =&gt; 0
<br>DEBUG mech: response-header: set-cookie =&gt; JSPWikiAssertedName=; Expires=Thu, 01-Jan-1970 00:00:10 GMT<br>DEBUG mech: response-header: location =&gt; http://[A URL]:880/coswiki/.<br>DEBUG mech: saved cookie: JSPWikiAssertedName=
<br>&nbsp;INFO mech: status: 302<br>&nbsp;INFO mech: follow redirect to: http://[A URL]:880/coswiki/.<br>&nbsp;INFO mech: Net::HTTP::Get: http://[A URL]:880/coswiki/.<br>DEBUG mech: using cookie: JSESSIONID=C08FB593CBE5508710F02C4AFAEEA09F
<br>DEBUG mech: request-header: accept =&gt; */*<br>DEBUG mech: request-header: accept-encoding =&gt; gzip,identity<br>DEBUG mech: request-header: user-agent =&gt; Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6
<br>DEBUG mech: request-header: cookie =&gt; JSESSIONID=C08FB593CBE5508710F02C4AFAEEA09F<br>DEBUG mech: request-header: referer =&gt; http://[A URL]:880/coswiki/Logout.jsp<br>DEBUG mech: response-header: date =&gt; Wed, 11 Oct 2006 08:01:34 GMT
<br>DEBUG mech: response-header: content-type =&gt; text/html;charset=UTF-8<br>DEBUG mech: response-header: server =&gt; Apache-Coyote/1.1<br>DEBUG mech: response-header: content-length =&gt; 14751<br>DEBUG mech: response-header: set-cookie =&gt; JSESSIONID=9DA2FF21FBD3AB05AE657E5D582FE8D5; Path=/coswiki
<br>DEBUG mech: saved cookie: JSESSIONID=9DA2FF21FBD3AB05AE657E5D582FE8D5<br>&nbsp;INFO mech: status: 200<br><br></font>