tongyang
V2EX  ›  问与答

okhttp3 是怎么保存 cookie 的

  •  
  •   tongyang · Nov 25, 2016 · 3016 views
    This topic created in 3637 days ago, the information mentioned may be changed or developed.

    试了好多次。。自带的 cookiejar 按照网上的方法试了试总是出问题。。

    3 replies  •  2016-11-26 09:41:57 +08:00
    wvitas
    wvitas
    Nov 25, 2016
    1
    用这个库把,我现在用的就是这个库来保持 Cookie !
    compile 'com.github.franmontiel:PersistentCookieJar:v1.0.0'
    tongyang
    tongyang
    OP
    Nov 26, 2016
    2
    @wvitas 我试试!
    tongyang
    tongyang
    OP
    Nov 26, 2016
    3
    @wvitas !真的好用,非常感谢!!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4092 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 05:51 · PVG 13:51 · LAX 21:51 · JFK 00:51
    ♥ Do have faith in what you're doing.