vikasskool / google-api-translate-java

Automatically exported from code.google.com/p/google-api-translate-java
0 stars 0 forks source link

Proxy server support #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
I have a problem with our company proxy server that filtrate all HTTP
request. For that reason I change you Translate class to work with proxy.
I add only one overload to method translate(String text, String from,
String to,Proxy proxy) and change HTTP request method retrieveTranslation().

Could you add this proxy support to next API version?
Thanks,
       Plamen Ivanov

Original issue reported on code.google.com by plameni...@gmail.com on 4 Mar 2009 at 4:17

Attachments:

GoogleCodeExporter commented 9 years ago
I'm not sure that this should be necessary, I'm sure I had this working just by
setting System properties. E.g.

java -Dhttp.proxyHost=proxy  -Dhttp.proxyPort=8080 myApp

Original comment by rich.mid...@gmail.com on 6 Mar 2009 at 5:38

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks 
It solve my problem. 
I used 
System.setProperty("http.proxyHost", "proxy");
System.setProperty("http.proxyPort", "8080");

Original comment by plameni...@gmail.com on 9 Mar 2009 at 1:47