20100101 Firefox/38.0",
"IE 11" => "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C;..., 1);// POST数据
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); // POST参数
}...public static function request($url, array $headers = [], array $data = [], $type = \Requests::GET...response->body = '';
return $response;
}
}
}
复制代码
//业务代码
// www.cwl.gov.cn 请求头...options = [])
{
$response = \app\lucky\common\Http::request($url, $headers, $urlParams, 'GET