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 HTTP/1.1 407 Proxy Authorization Required 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 "HTTP/1.1 407 Proxy Authorization Required" Watch "HTTP/1.1 407 Proxy Authorization Required" New topic

HTTP/1.1 407 Proxy Authorization Required

Nikhil Kumar

Joined: Dec 17, 2000
Posts: 9
I am trying to work with a object on a http:// url. The JVM runs behind a firewall. I do get a response code of 200 (OK), but only 'sometimes'. Most of the times I get a "HTTP/1.1 407 Proxy Authorization Required" message.
Also, if I use a https:// url, I get the same 407 message.
Can anyone explain this inconsistency? Please help.
Van Glass
Ranch Hand

Joined: Nov 18, 2000
Posts: 110
In order to do proxy authentication you must send the Proxy username and password base64 encoded within the Proxy-Authorization header.
I agree. Here's the link:
subject: HTTP/1.1 407 Proxy Authorization Required
It's not a secret anymore!