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

x
?
Solved

Allow only HTTP GET and POST

Posted on 2006-11-26
2
Medium Priority
?
327 Views
Last Modified: 2008-02-01
I want to restrict my web resources so that only HTTP GET and POST are allowed. I tried the following in web.xml, but now it disallow GET as well:

  <security-constraint>
    <web-resource-collection>
      <web-resource-name>SecureOrdersEast</web-resource-name>
      <description></description>
      <url-pattern>*</url-pattern>
      <http-method>HEAD</http-method>
      <http-method>TRACE</http-method>
      <http-method>PUT</http-method>
      <http-method>DELETE</http-method>
      <http-method>OPTIONS</http-method>
      <http-method>CONNECT</http-method>
    </web-resource-collection>
    <auth-constraint/>
  <security-constraint>

I tried a few different combination but still can't get it to work. Seems that HTTP GET is now always disallowed.
0
Comment
Question by:yongsing
  • 2
2 Comments
 
LVL 5

Accepted Solution

by:
deeppra earned 200 total points
ID: 18017404
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Take a look at these 6 Outlook Email management tools which can augment the working and performance of Microsoft Outlook to give you a more rewarding emailing experience.
In this article, the configuration steps in Zabbix to monitor devices via SNMP will be discussed with some real examples on Cisco Router/Switch, Catalyst Switch, NAS Synology device.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Loops Section Overview
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