curl指定Host

$ curl -H 'Host: blog.longwin.com.tw' http://127.0.0.1/
curl_setopt($ch,CURLOPT_HTTPHEADER,$host);

你可能感兴趣的:(curl指定Host)