'text/html,application/xhtml+xml,appl"/>  'text/html,application/xhtml+xml,appl">

Rumah  >  Artikel  >  pembangunan bahagian belakang  >  curl post有关问题

curl post有关问题

WBOY
WBOYasal
2016-06-13 11:58:29869semak imbas

curl post问题
$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 存在吗?

Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn