File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about response headers

 
surendar prabu
Ranch Hand
Posts: 102
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to know the host name and the portnumber in which my server is running.

can i get that from response headers??

or else how can i get these details?

regards,
surendarprabu.R
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by surendar prabu:

can i get that from response headers??
or else how can i get these details?




There is no need of headers to do.
just use the methods getServerName, getServerPort of HttpServletRequest Interface with your ServletRequest object.



Check Doc HttpServletRequest
[ October 04, 2006: Message edited by: Saif Uddin ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic