Closed docjason closed 7 years ago
I tested this and the current code works correctly with an HTTP proxy. The code eventually calls URL.openConnection()
- https://docs.oracle.com/javase/7/docs/api/java/net/URL.html#openConnection() which uses the configured Java proxy by default. Basically, all of the code you include to detect the Java system proxy configuration happens by default.
In my testing I can see that the connection is correctly made through the proxy when configured properly, either by using -Dhttp.proxyHost=localhost -Dhttp.proxyPort=8888
on the command line, or by using Properties.setProperty
.
If you're still having trouble, please provide more information about how your application is configured.
If trying to create CZML from behind HTTP Proxy with network resource then CesiumStreamWriter fails.
Example:
One simple fix is adding check if http.proxy of https.proxy system property are set in System.property then define in proxy before creating HttpWebRequest in CesiumFormattingHelper.