From cc11217b13920b6805c963f02842074c593d7e65 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 2 Apr 2014 18:26:31 +0800 Subject: [PATCH] GoogleTranslate.php --- GoogleTranslate.php | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.2