Skip to main content

Bug in JDK's HTTP client?

2 replies [Last post]
rituraj_tiwari
Offline
Joined: 2005-07-06

When I user HttpURLConnection to fetch a URL that contains a fragment identifier (anchor), JDK's outgoing HTTP request does not include the anchor. This is expected behaviour.

However, when I configure a proxy server (using http.proxyHost etc system properties), the outgoing HTTP request to the proxy includes the anchor. The proxy relays this faithfully to the app server which returns a 404.

This is likely a JDK bug. Anybody else run into this?

Thanks.
-Raj

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ch122065
Offline
Joined: 2006-01-27

I have just investigated this issue and found it to be a Java bug. It was first intruduced in 1.4. So if you are running with 1.3 you should not have this problem.

I have logged a bug with in the bug database to track this issue. You can view it at:

http://bugs.sun.com/bugdatabase/index.jsp

Search for Bug ID: 6469663

It will take a few days to get into the system. I will update this forum thread with the direct link when it becomes available.

The Bug ID will contain the technical details of this issue as well as the releases that it will be fixed in.

ch122065
Offline
Joined: 2006-01-27