Re: [Simpleweb-Support] What is the equal of HttpServletRequest.getServerName()?
Brought to you by:
niallg
From: Niall G. <gal...@ya...> - 2005-12-02 17:00:54
|
Hi Request.getValue is the same as HttpServletRequest.getHeader. It will provide the HTTP headers. If you wish to know more about which headers will be provided I suggest you take a look at RFC 2616. Niall --- Carfield Yim <car...@ca...> wrote: > I see, where can I find the document about > Request.getValue() ? Like, > what value can I get and what is the name? > > On 12/2/05, Carfield Yim <car...@gm...> wrote: > > 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_id865&op=click > > > > > _______________________________________________ > > > > 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 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_id=7637&alloc_id=16865&op=click > > > _______________________________________________ > > > Simpleweb-Support mailing list > > > Sim...@li... > > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > > ------------------------------------------------------- > 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_id865&op=click > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Niall Gallagher __________________________________________ Yahoo! DSL Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com |