标签:url shel nbsp pre host set bsp header com
域名www.test.com解析内部多台ip
$httpHeader = array(‘Host: www.test.com‘);
$url = "10.17.2.245/xxx/xxx/t.php";
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPHEADER, $httpHeader);
curl_setopt($ch, CURLOPT_URL, $url);
SHELL:
curl --silent -H "Host: www.test.com" "192.168.0.1/xxx/xxx/t.php"
标签:url shel nbsp pre host set bsp header com
原文地址:http://www.cnblogs.com/jking10/p/6595949.html