Hi,
I am using Google API to translate the string, but some  times it will
not translate properly. Recently i found a new issue it is not able to
download the data. it is showing the error:  "The remote server
returned an error: (503) Server Unavailable".

One more point is that it is a stand alone application (not a web
application) in c# Windows.
this is the code i have written:

string url = String.Format("http://www.google.com/translate_t?
hl=en&ie=UTF8&text={0}&langpair={1}", "apple", "en|de");

 WebClient webClient = new WebClient();
 webClient.Encoding = System.Text.Encoding.UTF8;
 // Get Default Proxy
 IWebProxy proxy = WebRequest.GetSystemWebProxy();

proxy = new WebProxy(sProxyAddr);
proxy.Credentials = new NetworkCredential(sUserName, sPasswd);
webClient.Proxy = proxy;
string result = webClient.DownloadString(url);

please give a solution to this probelm.

thanks
Jishad

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to