If you use authentication with a 401 type access, ( user/log on box
prompted by the browser ), I doubt you can bypass it by setting >something
in the headers, it may be possible, but I don't see how. If someone knows
better, please correct me. I've had this situation before.
I've did it.
you just have to copy the key=value pair in the headers and the
authentication is done.
In case of a basic authentication here is how to do it.

String authorization = request.getHeader("authorization");
URL priv = new URL(...);
URLConnection uc = priv.openConnection();
uc.setRequestProperty ("authorization", authorization);

Marc.


_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail

___________________________________________________________________________
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