Re: Post form with x-www-form-urlencoded content type and Coyote Connector

2008-08-19 Thread Mark Thomas
André Warnier wrote: Len Popp wrote: No, when a browser sends a POST request the request params are *not* sent as part of the request URI. They are sent in the body of the request. With Content-Type: application/x-www-form-urlencoded the request body looks like this: param1=aparam2=b You

Post form with x-www-form-urlencoded content type and Coyote Connector

2008-08-18 Thread deniak
Hi all, Has anyone ever used a form with x-www-form-urlencoded Content-Type to a web application running on tomcat? I don't know why but when I use that kind of Content-Type, my inputstream is empty. There's no problem if I use another Content-Type. It seems there's a problem with coyote

Re: Post form with x-www-form-urlencoded content type and Coyote Connector

2008-08-18 Thread David Smith
Forgive me if I'm wrong, but this looks like the browser should send a GET request. Why would you expect an input stream? --David deniak wrote: Hi all, Has anyone ever used a form with x-www-form-urlencoded Content-Type to a web application running on tomcat? I don't know why but when I use

Re: Post form with x-www-form-urlencoded content type and Coyote Connector

2008-08-18 Thread deniak
Actually, it's a POST request: http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1 When I receive the request, I want to deal with an input stream. David Smith-2 wrote: Forgive me if I'm wrong, but this looks like the browser should send a GET request. Why would you expect an

Re: Post form with x-www-form-urlencoded content type and Coyote Connector

2008-08-18 Thread André Warnier
deniak wrote: Actually, it's a POST request: http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1 When I receive the request, I want to deal with an input stream. David Smith-2 wrote: Forgive me if I'm wrong, but this looks like the browser should send a GET request. Why would you

Re: Post form with x-www-form-urlencoded content type and Coyote Connector

2008-08-18 Thread André Warnier
Len Popp wrote: No, when a browser sends a POST request the request params are *not* sent as part of the request URI. They are sent in the body of the request. With Content-Type: application/x-www-form-urlencoded the request body looks like this: param1=aparam2=b You can use a browser plugin

Re: Post form with x-www-form-urlencoded content type and Coyote Connector

2008-08-18 Thread Youssef Mohammed
It could be because TC reads and parses the the input stream for you, so you can get them though request.getParameter (and other methods). If the request content type is something different (e.g. xml/text ), you would have the input stream then and read it the way you want. This is just my