You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by asheesh <as...@q2aindia.com> on 2001/07/16 10:04:51 UTC

Re: How to get the Request Method

use
request.getMethod();

regards
asheesh

----- Original Message ----- 
From: Firestar <th...@yahoo.com>
To: <to...@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
>