http.Get返回Protocol not available错误

Hai*_*Liu 15 go

当我尝试在http://golang.org/pkg/net/http/#example_Get上运行此示例时,它返回以下错误

2009/11/10 23:00:00获取http://www.google.com/robots.txt:拨打tcp:协议不可用

知道为什么吗?

Vol*_*ker 40

Go Playground不允许HTTP请求.这与代码无关.这是一个由操场强制执行的安全预防措施.