Sometimes http server sends 400(bad request) as http status for some requests. Attaching the program to reproduce this. Also attaching the http traffic showing this problem.
To reproduce
-------------
run the run.sh in the tar by setting the correct paths for java, and javac. I used mustang b83.
Access the URL(run.sh prints an url) from browser. Enter something in the blank text area, and press "New" button. Browser's javascript sends an POST followed by a GET request. POST works fine but http server sends a bad request as response for GET request. The same application works fine in the servlet container.
To reproduce
-------------
run the run.sh in the tar by setting the correct paths for java, and javac. I used mustang b83.
Access the URL(run.sh prints an url) from browser. Enter something in the blank text area, and press "New" button. Browser's javascript sends an POST followed by a GET request. POST works fine but http server sends a bad request as response for GET request. The same application works fine in the servlet container.