Kyle Brantley (and many others) wrote:
...
Sorry to interrupt, but actually guys I believe that the problem is due to the way the data is POSTed, which in this case is - I believe - invalid.
See http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4
The data of a POST can be sent according to one of two encodings :
application/x-www-form-urlencoded
OR
multipart/form-data
This data is neither.
The way the data is sent in this case may be appropriate for a PUT, but not for a POST.
This may be why the usual servlet methods are getting confused.

To Kyle :

Create a simple <form .. > in html, with two text input fields (and a submit button).
To the <form> tag, add an explicit "enctype" attribute :

<form action="here_your_webapp_URL" enctype="application/x-www-form-urlencoded">

and submit the form to your webapp.
See what goes out with wireshark.

Then change the enctype in the <form> to "multipart/form-data", submit again, and look in wireshark.

These are the two ways you can submit data.





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to