ericnembot / google-api-translate-java

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

Translation API should use POST HTTP method #77

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run the tests
2. Watch how the TranslateTest.testLarge fails with HTTP 414 (Request URI
too long)

What is the expected output? What do you see instead?
I expect the test to pass and to see the correct translation

What version of the product are you using? On what operating system?
svn trunk

Please provide any additional information below.
HTTP GET sends the parameters in the URL which length is limited. To be
able to translate larger texts, HTTP POST must be used.

I'm attaching the patch to address this issue.

Original issue reported on code.google.com by kramar.tomas on 31 Oct 2009 at 11:00

Attachments:

GoogleCodeExporter commented 8 years ago
Great patch, much appreciated. Committed and will be in the next release. 
Thanks.

Original comment by rich.mid...@gmail.com on 2 Nov 2009 at 8:53