tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "asheesh" <ashe...@q2aindia.com>
Subject Re: How to get the Request Method
Date Mon, 16 Jul 2001 08:04:51 GMT
use
request.getMethod();

regards
asheesh

----- Original Message ----- 
From: Firestar <theebh@yahoo.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Tuesday, October 16, 2001 3:52 PM
Subject: How to get the Request Method


> Hi, I would like to know how to obtain the http
> request method from the browser/client, whether it's a
> GET or POST method. I used the following code:
> 
> req.getHeader("REQUEST_METHOD")
> 
> However this method returns a NULL when used with
> Tomcat 4.0.1 (Standalone - unpacked from the win32
> binary dist). This method works ok with JRun 3.1. What
> could be the reason? Thanks in advance.
> 
> Regards,
> Firestar
> 
> __________________________________________________
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
> 


Mime
View raw message