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

Sending user name and password from HTML

 
Bob Moranski
Ranch Hand
Posts: 177
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I was wondering if any one knows how to send Authorization header to a servlet from a client that will include both password and username.
Thank you.
 
Carl Trusiak
Sheriff
Posts: 3340
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To place information into the http header of a clients request, you use the method in HttpServletResponse setHeader(String name, String value). After that when the client makes any subsquent requests to your site you can retrieve this same information using the method in HttpServletRequest getHeader(String name) which returns the String value that you placed in the header.
Hope this helps
 
Bob Moranski
Ranch Hand
Posts: 177
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Carl!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic