apache - php server REQUEST_URI获取到的地址为何是带域名的?
怪我咯
怪我咯 2017-04-11 10:23:10
0
1
261

用谷歌扩展程序Host Switch Plus将www.example.com解析到本地,然后在index.php中打印REQUEST_URI,发现出的结果是全地址 http://www.example.com/,为啥???

日志里面的请求是127.0.0.1 - - [22/Mar/2017:22:47:43 +0800] "GET http://www.example.com/ HTTP/1.1" 200 23

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
洪涛

http://php.net/manual/zh/rese...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!