Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

applet URL through proxy with authentication

805747Nov 1 2010 — edited Nov 3 2010
Hello,

I have an applet that needs to communicate with a servlet behind a proxy with authentication.
When using the java.net.URL isn't necessary for me to specify proxy username and password (nor hostname and proxy) since they are somehow available from the plugin.
I am able to perform succesfull servlet communication . How can i retrieve on servlet side the proxy username and password (which have been inputted by the user in the popup window) ? I need to get access to the suer and password in order to give them back to the applet so i can use them for HttpClient connection to server's resources.

I was trying on servlet to get request.getRequestURL() but unfortunatelly it contains no username:password.


Thank you,
ionut
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 1 2010
Added on Nov 1 2010
12 comments
422 views