Re: [Simpleweb-Support] What is the equal of HttpServletRequest.getServerName()?
Brought to you by:
niallg
From: Niall G. <gal...@ya...> - 2005-12-01 10:58:09
|
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 |