Bug 9606 - HTTPUrlConnection does not send Host: header
HTTPUrlConnection does not send Host: header
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: kaffe (Show other bugs)
6.1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
http://impp.research.ecal.com/java-mo...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-02-20 10:29 EST by John Stracke
Modified: 2014-03-16 22:12 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-02-22 16:44:54 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description John Stracke 2000-02-20 10:29:39 EST
The HTTP client code in kaffe does not send the Host: header.
This means that it can't access virtual hosts.  The fix is
very simple; just add the Host: header (with value taken from
url.getHost()) in the writeBytes() call in the connect() method in
libraries/libjava/kaffe/net/www/protocol/http/HttpURLConnection.java

I have made the fix available at
<http://impp.research.ecal.com/java-model/kaffe-bug.html>.
You'll find a patch, an SRPM, an RPM, the updated Klasses.jar, and a test
case.
Comment 1 Bill Nottingham 2000-02-22 16:44:59 EST
fixed in kaffe-1.0.5-3.

Note You need to log in before you can comment on or make changes to this bug.