本地localhost访问出现 ERROR 400 Invalid Verb,win7上.appache 和 IIS 都有问题。在IE8和chrome上尝试了是同样的问题
但是127.0.0.1可访问。
未尝试删除IPV6协议。
尝试修改hosts文件 127.0.0.1 localhost 没有反应。修改为127.0.0.1 xxx 则可以使用 xxx访问到本地网站。
curl localhost 可以正确返回页面。
- Connected to localhost (::1) port 10043 (#0) > GET / HTTP/1.1 > Host: localhost:10043 > User-Agent: curl/7.45.0 > Accept: / > < HTTP/1.1 200 OK < Cache-Control: private < Content-Type: text/html; charset=utf-8 < Server: Microsoft-IIS/8.0 < X-AspNetMvc-Version: 4.0 < X-AspNet-Version: 4.0.30319 < X-SourceFiles: =?UTF-8?B?RDpcRnVpbmVcTmV0RXVjcFwx5byA5Y+R5bqTXDXpobnnm67nvJbno IFcMemhueebrua6kOeggVxFVUNQLldlYg==?= < X-Powered-By: ASP.NET < Date: Wed, 13 Apr 2016 04:09:58 GMT < Content-Length: 10381 < 尝试过恢复internet选项。
appache下访问localhost结果200 但是页面没有出来。
Remote Address:
Request URL:
http://localhost:10081/
Request Method:
GET
Status Code:
200 OK
IIS下访问localhost结果400 页面显示错误
Bad Request - Invalid Verb
HTTP Error 400. The request verb is invalid.
Remote Address:
Request URL:
http://localhost:1196/
Request Method:
GET
Status Code:
400 Bad Request
Response Headersview source
Connection:
close
Content-Length:
326
Content-Type:
text/html; charset=us-ascii
Date:
Tue, 12 Apr 2016 15:03:24 GMT
Server:
Microsoft-HTTPAPI/2.0
连接被关闭了。。