JDK-6365587 : Proxy-Connection header sent through tunnel
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 5.0,5.0u2,5.0u20
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,windows_2000,windows_xp
  • CPU: generic,x86
  • Submitted: 2005-12-20
  • Updated: 2011-05-18
  • Resolved: 2011-05-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other Other JDK 6 JDK 7
5.0u24-revFixed 5.0u25Fixed 6u19-revFixed 7 b85Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Description
Proxy-Connection header is being sent to the http server over an SSL tunnel. The Proxy-Connection header is only of interest to the proxy. You can see in our sun.net.www.protocol.http.HttpURLConnection.writeRequests() that we do not check if we are in a tunnel situation before setting this header. 

When tunneling through a proxy then the proxy is essentially just forwarding the data and does not interpret it. We do not need to set this header and may cause issues with http servers that do not interpret it correctly.

Comments
EVALUATION changeset: http://hg.openjdk.java.net/jdk7/tl/jdk/rev/c96d6cb31723
23-02-2010

EVALUATION see description
04-04-2006