File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Android Security Essentials Live Lessons this week in the Android 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
Generated Stub and Proxy Settings !!
Proxy authentication (Kerberos?!)
java.net.ConnectException: Connection refused: connect
Accessing html pages through proxy needs Proxy authorization
Weblogic Eclipse Proxy