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
yepinf
V2EX  ›  Python

https 登录的网站(非全站 https)如何模拟登录?

  •  
  •   yepinf · Feb 18, 2015 · 5860 views
    This topic created in 4087 days ago, the information mentioned may be changed or developed.
    https登录的网站(非全站https)如何模拟登录?
    比如豆瓣这种
    大家有木有比较完美的方案 :D
    6 replies    2015-03-02 09:57:25 +08:00
    arkilis
        1
    arkilis  
       Feb 18, 2015
    Grap the certificate and use curl:
    i.e.
    curl --cacert /path/to/your/CA/file.crt https://...
    ljcarsenal
        2
    ljcarsenal  
       Feb 18, 2015
    先登录,抓cookie。
    denghongcai
        3
    denghongcai  
       Feb 18, 2015
    和 http 的没区别,一样来就行了
    wdlth
        4
    wdlth  
       Feb 18, 2015
    除非是验证证书的,不然https和http的方法可以看作是一样的,只不过https采用加密的传输协议,防止数据被中间人嗅探、修改等。
    killerv
        5
    killerv  
       Feb 20, 2015
    应该没区别吧,使用cookielib就可以了,话说豆瓣是HTTPS吗?
    tolerious
        6
    tolerious  
       Mar 2, 2015 via iPhone
    搜下怎么进行CA的认证登陆
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5947 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 74ms · UTC 06:26 · PVG 14:26 · LAX 23:26 · JFK 02:26
    ♥ Do have faith in what you're doing.