Hi,

Hopefully someone can suggest a solution to my problem.

Firstly, I have a html form which was generated by some application(servlet, cgi, 
etc).   Let's say, the URL for this form is http://host:8080/cgi/someform.   Let's 
also assume that the user has already authenticated themselves (Basic authentication) 
with a Realm of "Program" for the above URI.

The above form defines an action attribute with some servlet ie.  
http://host:8080/servlets/someServlet
Because this servlet is using a different base URI to that of the original form, the 
browser doesn't send the currently cached authentication header.

In this servlet I do some processing, create a HttpURLConnection object, and forward 
some of the form parameters onto another program which is in the same realm/URI as the 
original application.  The program want's to send a WWW-authenticate back to my 
HttpURLConnectionObject.  Of course, I don't have the authentication field from the 
original request, to forward in the HttpURLConnection object.

Hope that makes some sense.

Is there anyway for the servlet, running under a particular URI, to request the 
authentication header from the browser, for a different URI?

Thanks,
Mick



*******************************************************************
The information contained in this email and any files attached may
be confidential information to the intended recipient and may be
the subject of legal privilege or public interest immunity.

If you are not the intended recipient, any use, disclosure or
copying is unauthorised.

If you have received this document in error please telephone
+61 2 6243 5666.

*******************************************************************
This footnote also confirms that this email message has been swept
by MIMEsweeper for the presence of computer viruses.
*******************************************************************

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to