Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Question about Tomcat 7.x   regarding Alowed HTTP verbs

Posted on 2014-07-27
5
Medium Priority
?
123 Views
Last Modified: 2014-08-29
Is it true the webapp controls the allowance of the VERBS if the webservice accepts it then so does Tomcat or is there
a setting to allow say PUT,GET,POST, DELETE   and what about OPTIONS or the other obscure verbs?
0
Comment
Question by:Robert Silver
  • 3
  • 2
5 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40223117
Not sure I'm following you but if your webapp doesn't recognize the verb then it's not going to do anything so it will end there.
0
 
LVL 2

Author Comment

by:Robert Silver
ID: 40248859
My question was really on a Tomcat 7.x or greater version server by default capable of handling PUT,DELETE, HEAD, OPTIONS and all the typical RESTFUL Verbs or is this fully controlled by what Spring MVC Rest controller specifies in each webapp?
0
 
LVL 58

Accepted Solution

by:
Gary earned 1500 total points
ID: 40248869
controlled by what Spring MVC Rest controller - Simple answer is Yes
0
 
LVL 2

Author Comment

by:Robert Silver
ID: 40248977
Any Spring MVC controller I would  write e.g:
within a Conrtoller  class:
  @RequestMapping(method = RequestMethod.DELETE, value = "/{gameId}")
    ResponseEntity<Void> destroyGame(@PathVariable Long gameId) throws GameDoesNotExistException {
        this.gameRepository.remove(gameId);
        return new ResponseEntity<Void>(HttpStatus.OK);
    }
I mean to ask by default are these HTTP verbs enabled   or should I say not disable in versions 7.x and above?
0
 
LVL 2

Author Closing Comment

by:Robert Silver
ID: 40292907
I would have appreciated a bit of history like when in the history of Tomcat these verbs were enabled by default was that always the case?
I know Trace has to be enabled right? Also taking it another step if Mod_JK or  mod_proxy were used to go through an HTTPD apache server would those HTTP verbs  also be enabled by default Or are there additional settings needed on the Apache HTTPD server???
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question