Hi everyone,

I would like to know how to retreive the HTTP request method (GET, POST, HEAD DELETE TRACE etc) associated with any URL in java. Is there any built in function available to do this...??

I have tried using the getMethod() function of the HTTPURLConnection class ...But it always returns 'GET' method for all URLs.


Plz help me out with solutions to the above issue. Thanks in advance.


Regards,

Sonal