V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Weakdancer
V2EX  ›  Python

这样的抛出Urlerror有可能是那些情况呢?

  •  
  •   Weakdancer ·
    weakdancer · 2011-05-13 11:24:33 +08:00 · 4782 次点击
    这是一个创建于 4704 天前的主题,其中的信息可能已经有所发展或是发生改变。
    print urllib2.urlopen("http://diftim.gongda.tk").read() 但是实际上这个网站是可以通过浏览器访问的,我使用国外的Vps测试后结果还是Error,另外网站是Gae cloudflaure,gae的设计中没有对Header进行处理,所以请问还会是什么问题呢?同样网络状况的网站还有 kb.gongda.tk 等,而这些都没有报错。
    2 条回复    1970-01-01 08:00:00 +08:00
    aligo
        1
    aligo  
       2011-05-13 11:39:57 +08:00
    直接curl呢?得到什么结果?
    Weakdancer
        2
    Weakdancer  
    OP
       2011-05-13 12:06:32 +08:00
    不好意思最后得到的原因还是网络的问题,在Vps是不报错的,谢谢了 @aligo
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2833 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 14:40 · PVG 22:40 · LAX 07:40 · JFK 10:40
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.