tohateam / google-api-translate-java

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

TranslateV2 security issue #159

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use translate method of TranslateV2

What is the expected output? What do you see instead?
1. should use a HttpsURLConnection instead, HttpURLConnection is used.

What version of the product are you using? On what operating system?
google-api-translate-java-0.97

Please provide any additional information below.
In code, you are populating the url
String populatedTemplate = 
String.format("https://www.googleapis.com/language/translate/v2?key=%s.......
and then 
HttpURLConnection uc;
uc = (HttpURLConnection)url.openConnection();
should use a HttpsURLConnection 

Original issue reported on code.google.com by san...@gmail.com on 24 Jan 2012 at 3:01