1000字范文,内容丰富有趣,学习的好帮手!
1000字范文 > 使用phpcurl模拟post请求 – PHP基础 – 前端 php ajax格式

使用phpcurl模拟post请求 – PHP基础 – 前端 php ajax格式

时间:2022-04-09 10:22:23

相关推荐

使用phpcurl模拟post请求 – PHP基础 – 前端 php ajax格式

$post_data_string = http_build_query($post_data, ‘&’); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $get_session_url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $xmloutput = curl_exec($ch);

一般这样写 你自己对比下

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。