>  기사  >  백엔드 개발  >  curl post问题

curl post问题

WBOY
WBOY원래의
2016-06-23 13:56:16982검색

$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으로 문의하세요.