首頁  >  文章  >  後端開發  >  curl post问题

curl post问题

WBOY
WBOY原創
2016-06-23 13:56:16981瀏覽

$voteurl="http://www.qq.com/wenjuan.show.php?act=sub&id=7&ucode=".$aid;
$header= array(
'Accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'CURLOPT_COOKIE' => 'PHPSESSID=a1nvcdhsucj6av9vclsa435si2',
'CURLOPT_REFERER' => 'http://www.qq.com/wenjuan.show.php?id=7&ucode='.$aid,
'Origin' => 'http://www.qq.com',
'Content-Type' => 'application/x-www-form-urlencoded',
'Connection' => 'keep-alive',
);

$post = array(
'selid%5B%5D' => $id,
'submit' => '+%CC%E1+%BD%BB+',
);

$response = ihttp_request($voteurl, $post, $header);

怎么老提示500错误


回复讨论(解决方案)

函数 ihttp_request 存在吗?

存在,其他人调用就很正常

贴出来看看!

是不是发送过程中,$post = array(
'selid%5B%5D' => $id,
'submit' => '+%CC%E1+%BD%BB+',
);这个又被编码了

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn