摘要: php-curl请求接口一般都会碰到的问题,记录一下; 请求域名对应host添加到请求头中 <?php $host = gethostbyname('kingcard.dgunicom.com'); curl_setopt($ch, CRULOPT_HTTPHEADER, ['Host: '.$ho 阅读全文
posted @ 2021-12-03 15:30 1553 阅读(401) 评论(0) 推荐(0) 编辑