Please find below an article I have written on my blog to solve that issue:
"How to Fix the "400 Bad Request" error message from a website"
http://wp.me/p2519N-cB
A Hit
A Hit
request response paradigm is somthiing which define how request and response work in the web application or in real world. First when the user open browser and hit any URL, request object is created. This request object then send to the server. server finds the appropriate resources for that request and executes the logic (if any) ans send back response to the browser. Browser interprets the response and display result
An application or browser
cgi
In send Redirect whenever the client makes any request it goes to the container, there the container decides whether the concerned servlet can handle the request or not. If not then the servlet decides that the request can be handle by other servlet or jsp. Then the servlet calls the sendRedirect() method of the response object and sends back the response to the browser along with the status code. Then the browser sees the status code and look for that servlet which can now handle the request. Again the browser makes a new request, but with the name of that servlet which can now handle the request and the result will be displayed to you by the browser. In all this process the client is unaware of the processing.
Common Gateway Interface (CGI)
Response is the HTTP stream sent from the Web server to the browser. Request is the HTTP stream sent from the browser to the Web server.
Bad RequestYour browser sent a request that this server could not understand.newdiv
It simply means the web server was unable to understand the request of the client and process it.
Request clarification?
Bad RequestYour browser sent a request that this server could not understand.newdiv