spaccabit / google-api-for-dotnet

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

Cannot translate long text (URL query limit) #63

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Take a long text like a webpage content (I took 3774 chars)
2.
3.

What is the expected output? What do you see instead?
I would expect it to translate, I get an exception The remote server returned 
an error: (414) Request-URI Too Large.

What version of the product are you using? On what operating system?
I am using translation api alpha 0.4 with windows 7

Please provide any additional information below.

Original issue reported on code.google.com by Koby.m...@gmail.com on 20 Jul 2010 at 2:19

GoogleCodeExporter commented 8 years ago
I have this too.  The problem is that the text to be translated is send by a 
GET request.  Using a POST request would solve this issue.  The question is if 
this is a) supported by the api and b) allow by google

Original comment by damiaan....@gmail.com on 20 Aug 2010 at 9:47

GoogleCodeExporter commented 8 years ago
I think this is related bo issue #28

Original comment by damiaan....@gmail.com on 20 Aug 2010 at 9:49

GoogleCodeExporter commented 8 years ago
Well you can go around by breaking the string in smaller parts  ( I used 400 
chars ) translate each (in a loop of some kind maybe)and then sum them up 

Original comment by valeriu....@gmail.com on 1 Sep 2010 at 9:44