Update HTTPURLConnection.java

added support for exclusion of configured hostnames (eg. localhost or local network domain) from proxying - there is no other way at the moment

unfortunatelly I am not able to check if this compiles, because ant has error with Version class on current master. However this updates in previous version compiled well.