java.net.Authenticator with proxy -- does it work ???

E

Elwood P. Dowd

I've tried coding a java program to use java.net.Authenticator to
tunnel through a proxy server, and it keeps failing with an HTTP 407
(authentication failed).

Using:
- jdl 1.4.2

I instantiated my authenticator class (not shown) and registered it
using:
MyAuthenticator ma = new MyAuthenticator();
Authenticator.setDefault(ma);

My MyAuthenticator class has the requisite getPasswordAuthentication()
method.

But getPasswordAuthentication() never gets invoked ?

I know my proxy serer requires a userid/password.

But I get an IOException and MyAuthentication never seems to get
invoked ??

Does anyone have a clue ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top