| Author |
POST - Accepts Passive resource
|
Srinivasan Madhavan
Greenhorn
Joined: Sep 21, 2004
Posts: 10
|
|
Hi, I observe something weird with the HTTP POST method. I have a html form with POST given as the method attribute in the <form> tag. The action attribute has a passive resource (say test.html) and submitting the form fetches the passive resource. I was all along thinking that the POST method was for the purpose of Active resources ( Servlets & JSPs) only. Besides I didn't find the logic in allowing a passive resource to be associated with the POST method when we have the GET method for it. I tried this on a Tomcat container. Thanks in advance, Srini
|
 |
Henrique Sousa
Ranch Hand
Joined: Apr 29, 2004
Posts: 92
|
|
Hello, You would have to check the HTTP specs for the precise answer, but I can only tell what we can observe. Try it yourself: with the POST method, the URL to the destination resource, whether it is a servlet or not, remains unchanged, without any query parameters passed; the opposite happens if you use the GET method: the URL is appended of all query parameters in the browser window after the destination is loaded. That is the main difference I see, and has no relation to the nature of the resources you use -- after all, everything ends up creating a plain HTML page. As I said, go to the specs for further info. Best regards, Henrique
|
 |
 |
|
|
subject: POST - Accepts Passive resource
|
|
|