Re: HttpUtils.getRequestUrl().

Uthiresh Narayanan <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <006101c2d42f$80314820$22101fac@PCP4069>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.