aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
Author

HTTP/1.1 407 Proxy Authorization Required

Nikhil Kumar
Greenhorn

Joined: Dec 17, 2000
Posts: 9
I am trying to work with a java.net.HttpURLConnection 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.
-Nikhil
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: http://aspose.com/file-tools
 
subject: HTTP/1.1 407 Proxy Authorization Required
 
Similar Threads
Accessing html pages through proxy needs Proxy authorization
Generated Stub and Proxy Settings !!
Proxy authentication (Kerberos?!)
java.net.ConnectException: Connection refused: connect
Weblogic Eclipse Proxy