Curlpost question $ 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 = 100 ',
'Curlopt _ cooker' => '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 );
Why do I always receive a 500 error?
Reply to discussion (solution)
Does the ihttp_request function exist?
Yes, it is normal for others to call
Paste it and see it!
Is the $ post = array (
'Selid % 5B % 5D '=> $ id,
'Submit '=>' + % CC % E1 + % BD % BB + ',
); This is encoded again.