locked
using POST method RRS feed

  • Question

  • Hi,

    I using Bing Translate with GET (curl) method and everything work fine.

    But now i need using POST mothod, add new line:

    $postData = array('text'=>'home', 'to'=>'it', 'from'=>'en');curl_setopt($ch, CURLOPT_POST, TRUE);	curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);

    And now get error:

    "Error Status Code: 'InternalServerError'

    Details: The server encountered an error processing the request. Please see the server logs for more details."

    BING does not support POST?

    Friday, June 29, 2012 2:08 PM

All replies

  • The 'translate' method of the HTTP service is GET only.

    If you want to use POST, the GetTranslations (http://msdn.microsoft.com/en-us/library/ff512417) method is available.

    Full docs here:

    http://msdn.microsoft.com/en-us/library/ff512419.aspx

    Monday, July 2, 2012 1:50 PM