it returns the version of the protocol ie HTTP1.0 or HTTP 1.1.
anyways i found the way out
i dod it by ServletRequest.getScheme() it retursn http , https ot ftp.

thanks fo ur reply.
cheers,
uthiresh

-----Original Message-----
From: Jost Richstein [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 6:23 PM
To: [EMAIL PROTECTED]
Subject: Re: HttpUtils.getRequestUrl().


What do you think about request.getProtocol() ?

Uthiresh Narayanan wrote:
>
> Hi All,
>         I am trying to get the protocol for the request ie. whether it is
https ot
> http.
> For this the method HttpUtils.getRequestUrl() works but it is deprecated
in
> 2.2 onwards. What is the alternative to get whether the request is a
secure
> one or non secure.
>
> The getAuthType() of request object always returns null.
>
> TIA,
> uthiresh
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to