Bug in JDK's HTTP client?
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?