I have a servlet that extends HttpServlet in an Apache tomcat environment.
It has a doPost override.
I am trying to access via an HttpURLConnection with setDoOutput = true.
The client gets a 405 however the work is still performed by the Tomcat server as evidenced by entries in the Tomcat log.
I did find a Limit POST in the httpd.conf file and removed it and restarted Apache.
<Location /servlets>
<Limit POST>
Order deny,allow
Deny from all
Allow from localhost
Satisfy any
</Limit>
</Location>
Same results.
If I change the client to GET I get a 405 as would be expected, no doGet.
The Apache logs are correctly reflecting whether the client request is a GET or POST depending on what flavor I send.
It sure seems like this should have been the issue but no luck
Anywhere else to look?