Re: [Simpleweb-Support] What is the equal of HttpServletRequest.getServerName()?
Brought to you by:
niallg
|
From: Carfield Y. <car...@gm...> - 2005-12-01 19:04:34
|
I see, where can I find the document about Request.getValue() ? Like,
what value can I get and what is the name?
On 12/1/05, Niall Gallagher <gal...@ya...> wrote:
> Hi Carfield,
>
> Try Request.getValue("host") this should provide the
> host provided for all HTTP/1.1 clients. If you are
> running on a port other than 80 you may want to trim
> the port, for example "host.com:8080" needs to become
> "host".
>
> Niall
>
> --- Carfield Yim <car...@ca...> wrote:
>
> > I try to use
> > simple.http.Request.getInetAddress().getHostName()
> > but it
> > is very slow, is there better alternative?
> >
> >
> >
> -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do
> > you grep through log files
> > for problems? Stop! Download the new AJAX search
> > engine that makes
> > searching your log files as easy as surfing the
> > web. DOWNLOAD SPLUNK!
> > http://ads.osdn.com/?ad_idv37&alloc_id=16865&op=3Dclick
> > _______________________________________________
> > Simpleweb-Support mailing list
> > Sim...@li...
> >
> https://lists.sourceforge.net/lists/listinfo/simpleweb-support
> >
>
>
> Niall Gallagher
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi=
les
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick
> _______________________________________________
> Simpleweb-Support mailing list
> Sim...@li...
> https://lists.sourceforge.net/lists/listinfo/simpleweb-support
>
|