> if my proxy requires a username and password i do this
>
> System.setProperty("http.proxyUser","user");
> System.setProperty("http.proxyPassword","password");
I am not aware of these properties. AFAIK you have to use a
java.net.Authenticator.
> Another thing i have to ask you is that proxy authentication, is the same
> as web page authentication??
Well, there are two values for Authenticator.RequestorType, so there is
a difference.
freesoft_2000 - 23 Jul 2005 11:56 GMT
Hi everyone,
Thanks for answering to my reply Esmond. I read up on the
Authenticator class and now know how to use it but i have one more
question.
Can the Authenticator class also be use to access a password
protected https or ftp site or is the Java Authenticator class only meant
for http internet protocol only.
If it can access more than http have you done it before and
did it work??
I know these may seem like basic questions to you but
please bear with me.
Hoping to hear from you
Yours Sincerely
Richard West
Esmond Pitt - 24 Jul 2005 06:28 GMT
> Thanks for answering to my reply Esmond. I read up on the
> Authenticator class and now know how to use it but i have one more
[quoted text clipped - 3 lines]
> protected https or ftp site or is the Java Authenticator class only meant
> for http internet protocol only.
HTTP or HTTPS, proxy or server.
> If it can access more than http have you done it before and
> did it work??
Probably at some point, I can't remember for sure.