On 05/03/2010 05:48, vishalsant wrote:
I have a POST I need to a do to a url ( through Apache Jmeter and in fact any descent programmatic HTTP request libraries) I have my servlet is a war ( test.war ) with the web.xml having the correct url mapping <servlet> <servlet-name>test</servlet-name> <servlet-class>com.company.TestServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>test</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping>
You are overriding the DefaultServlet by using this url pattern, which provides a variety of functions, including the welcome file and I suspect the /app to /app/ redirect.
Is there a reason why you can't test with a real meaningful path, like "/apptest1"?
p
I am able to POST to http://localhost:8080/test/ ( note the trailing "/" ) .. on the other hand if I only use http://localhost:8080/test ( without the trailing "/" ) , my post data does not come through. GET works in either cases. Is this a specification of the servlet API or a feature of the HTTP protocol? What should I do to get the http://localhost:8080/test to get me the POST data. ( without the trailing "/" ) . We are moving away from having Apache front us , show proxyPass url rewriting is non applicable.
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org