From: Chris Date: Wed, 2 Apr 2014 10:26:31 +0000 (+0800) Subject: GoogleTranslate.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=cc11217b13920b6805c963f02842074c593d7e65 GoogleTranslate.php --- diff --git a/GoogleTranslate.php b/GoogleTranslate.php index 64cb18a8..6e8d9349 100644 --- a/GoogleTranslate.php +++ b/GoogleTranslate.php @@ -43,6 +43,8 @@ class Pman_Core_GoogleTranslate extends Pman $handle = curl_init($url); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); + curl_setopt($handle, CURLOPT_POST, count($param)); + curl_setopt($handle, CURLOPT_POSTFIELDS, $param); $response = curl_exec($handle); $responseDecoded = json_decode($response, true); curl_close($handle);