分类:PHP 发布时间:2020-05-20 17:59:24
设置headers ``` $headers = [ "Content-Type:application/json", "X-Requested-With:XMLHttpRequest", ]; curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); ``` ``` // 常见错误 $headers = [ "Content-Type" => "application/json", "X-Requested-With" => "XMLHttpRequest", ]; ```
搜索
文章分类
最新文章