• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SC_METHOD_NOT_ALLOWED

 
Paul Wetzel
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
following is from javadoc for HttpServletResponse:
SC_METHOD_NOT_ALLOWED
Status code (405) indicating that the method specified in the Request-Line is not allowed for the resource identified by the Request-URI.
what do they mean when they refer to: Request-Line & Request-URI?
thanks in advance
paul
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13073
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand that this happens when you try to do things like sending a POST request to a plain HTML page. The URI requested can't handle a POST request.
The request line is the first header line in the request.
Bill
 
MSD
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Request line means the complete HTTP request that i ssent to the server. Requested URI refers to the location of the resource/application on the server.
Yep, the previous reply is on the dot. There are other cases. For example, if u refer to a servelt froma page using POST but in the servlet, u haven't provided a doPost, only doGet. I did get this error with JRun, don't know about other Servlet engines.
Hope this helps.
-Mohammed
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic