我明白了: -
The requested URL could not be retrieved
While trying to retrieve the URL: http://localhost:8080/?
The following error was encountered:
Zero Sized Reply
Squid did not receive any data for this request.
Your cache administrator is internet.
Generated Thu, 12 Jun 2014 06:35:51 GMT by Uranus_BLR (squid)
我正在尝试使用eclipse IDE运行Web应用程序。只有chrome(即时使用版本34.0.1825.4)显示此错误,其他浏览器正常,它们正常工作。我ping了localhost。
以下是ping命令的控制台日志: -
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Ping statistics for 127.0.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
这可以通过创建主机条目并取消选中自动检测设置来解决:
remove ipv6 localhost entry ::1 with ipv4 127.0.0.1
e.g >> 127.0.0.1 localhost
[ path to host file is :: C:\Windows\System32\drivers\etc]
Goto internet options > connection > LAN settings and uncheck the automatically detect settings.
尝试向squid.conf添加一个选项:
server_http11 on
并重新启动鱿鱼。它为我解决了麻烦。
用户报告说他们收到了Zero Byte Reply。用户试图通过443的另一个端口使用https地址,即https://google.com:4433
我将端口(即4433)添加到我的squid.conf文件中的acl Safe_Ports&acl SSL_Ports指令,运行squid -k reconfigure并且瞧它工作了。
在尝试访问8080上的http的情况下,您只需将“acl Safe_Ports port 8080”行添加到squid.conf文件中。
您只需确保不打开会损害安全性的端口。
对于某些用户,我的网络也存在同样的问题。幸运的是,该网站是在本地网络上托管的,我只是把这个网站放到了Proxy Exception。它解决了我的问题。跳它会对你的情况有所帮助。