File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Sockets and Internet Protocols and the fly likes Proxy authentication (Kerberos?!) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Proxy authentication (Kerberos?!)" Watch "Proxy authentication (Kerberos?!)" New topic

Proxy authentication (Kerberos?!)

Tim West
Ranch Hand

Joined: Mar 15, 2004
Posts: 539
Hi guys,
I've Googled around for an answer on this one, and searched the message history here, but can't find anything that helps...I'm hoping this should be a fairly simple question...or at least one with a fairly simple answer
My question: how do I do proxy authentication? The examples I've seen do something like this:

When I try this, I get the following headers printed out:

OK, I get code 407 back...I'm unauthorised. If I remove the lines that add the authentication header, I get the exact same info back, so obviously my authentication is whack.
Does anyone have any pointers from here? I'm entirely unsure of where to go so I'm open to any help, but some more specific questions are:
1- I need to use Kerberos authentication...right? Where can I read up on this? Google was no help again...
2- What is http.proxyType 4? Most examples on the net set this, but no-one says what the 4th proxyType is, nor what the other three are. Does this mean basic authentication? If it does, I probably need to set it to something else.

[ April 15, 2004: Message edited by: Tim West ]
[ April 15, 2004: Message edited by: Tim West ]
Axel Janssen
Ranch Hand

Joined: Jan 08, 2001
Posts: 2164
the solution presented in this article helped me one time.
Not sure if its appropriate for your case:
am in hurry.
I agree. Here's the link:
subject: Proxy authentication (Kerberos?!)
It's not a secret anymore!