curl post xml报文请求和模拟表单数据流multipart/form-data上传文件
curl post xml报文
发起请求
public static function http_xml_buildData($url,$param){
$xml = self::arrayToXml($param);
$header = ['Content-type: text/xml'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setop
原创
2021-10-16 11:06:39 ·
1336 阅读 ·
0 评论