-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris,

On 6/18/2009 10:35 PM, cleegt wrote:
> Because of the security reason imposed by my company, I disabled http
> DELETE, PUT methods from the tomcat based on some suggested method mentioned
> on the internet. Now, I need to test whether the fix is working or not. So,
> I am looking for a sample testing program to test the DELETE and PUT
> methods. Is there anyone know where I can find those programs?

How about good old telnet? HTTP is a very readable protocol. Note that
PUT and DELETE are disabled by default in a standard Tomcat install. You
should have to take action to /enable/ these methods.

$ telnet host 80
Trying [ip address]...
Connected to host.
Escape character is '^]'.
DELETE /path/to/resource HTTP1.1

HTTP/1.1 405 Method Not Allowed
Date: Wed, 24 Jun 2009 14:35:07 GMT
Server: Apache
Allow: GET,HEAD,POST,OPTIONS
Content-Length: 319
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>405 Method Not Allowed</title>
</head><body>
<h1>Method Not Allowed</h1>
<p>The requested method DELETE is not allowed for the URL
/path/to/resource.</p>
<hr>
<address>Apache Server at [host] Port 80</address>
</body></html>
Connection closed by foreign host.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkpCOgUACgkQ9CaO5/Lv0PB/KQCgoLWibqqELJzBuMKkqRrGIyrd
ka0AoL/2mqI+iYfrUf8PnVYuXfFx19j8
=tVZF
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to