tumblr / jumblr

Tumblr API v2 Java Client
Apache License 2.0
278 stars 105 forks source link

Support HTTP proxies (enhancement) #104

Open sawo opened 7 years ago

sawo commented 7 years ago

Some IT infrastructure does not allow to connect to the internet directly but provide HTTP proxies. Can you either modify the JumblrClient.java class to accept proxy settings or based on this Oracle documentation support the related environment variables, please?

lgjx123 commented 6 years ago

@sawo You can solve it in the following ways: System.setProperty("http.proxyHost", "127.0.0.1");
System.setProperty("http.proxyPort", "1080"); System.setProperty("https.proxyHost", "127.0.0.1");
System.setProperty("https.proxyPort", "1080");