我有一些麻烦,无法发送标题,标题已发送。我做了一些,没有很多关于谷歌的研究,这个问题,但没有成功。Magento,无法发送标题,curl_exec
无法发送标题;在/var/www/webpage.com/public_html/app/code/local/Sikkerthjem/Aktivering/controllers/IndexController.php已经发送了头,线111
代码:
$ch = curl_init();
$str_cookie = 'APIKEY=' . $this->api_key . '; path=/';
$json_encode = urldecode(http_build_query($fields));
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $json_encode);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_COOKIE, $str_cookie);
curl_exec($ch); <-- This is line 111
curl_close($ch);
我已签为空格。 我真的很希望,你们其中一人对这个问题有了解答。
在此先感谢。
你以前输出的东西给浏览器!只需检查你的代码。 –