我的apache配置了 basic auth.
假定我的ip地址是 111.111.111.111
/var/www/html/remote.html<p>it is a test</p>
curl -u xxxx:xxxx -I http://111.111.111.111/remote...
获得这样的输出
HTTP/1.1 200 OK
Date: Fri, 07 Sep 2018 03:26:06 GMT
Server: Apache/2.4.6 (CentOS)
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, PUT, DELETE, OPTIONS
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Authorization,DNT,User-Agent,Keep-Alive,Content-Type,accept,origin,X-Requested-With
Last-Modified: Fri, 07 Sep 2018 03:22:41 GMT
ETag: "b2-5753f8537e26c"
Accept-Ranges: bytes
Content-Length: 178
Content-Type: text/html; charset=UTF-8
为何在浏览器中输入http://111.111.111.111/remote...
不能直接显示remote.html
它会调出认证窗口?
慕的地6264312
相关分类