V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · May 13, 2011 · 5474 views
    This topic created in 5466 days ago, the information mentioned may be changed or developed.
    print urllib2.urlopen("http://diftim.gongda.tk").read() 但是实际上这个网站是可以通过浏览器访问的,我使用国外的Vps测试后结果还是Error,另外网站是Gae cloudflaure,gae的设计中没有对Header进行处理,所以请问还会是什么问题呢?同样网络状况的网站还有 kb.gongda.tk 等,而这些都没有报错。
    2 replies    1970-01-01 08:00:00 +08:00
    aligo
        1
    aligo  
       May 13, 2011
    直接curl呢?得到什么结果?
    Weakdancer
        2
    Weakdancer  
    OP
       May 13, 2011
    不好意思最后得到的原因还是网络的问题,在Vps是不报错的,谢谢了 @aligo
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2357 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 01:16 · PVG 09:16 · LAX 18:16 · JFK 21:16
    ♥ Do have faith in what you're doing.