V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
tongyang
V2EX  ›  问与答

okhttp3 是怎么保存 cookie 的

  •  
  •   tongyang · 2016-11-25 16:53:16 +08:00 · 2307 次点击
    这是一个创建于 2745 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    3 条回复    2016-11-26 09:41:57 +08:00
    wvitas
        1
    wvitas  
       2016-11-25 17:13:41 +08:00
    用这个库把,我现在用的就是这个库来保持 Cookie !
    compile 'com.github.franmontiel:PersistentCookieJar:v1.0.0'
    tongyang
        2
    tongyang  
    OP
       2016-11-26 09:14:01 +08:00
    @wvitas 我试试!
    tongyang
        3
    tongyang  
    OP
       2016-11-26 09:41:57 +08:00
    @wvitas !真的好用,非常感谢!!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1008 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 19:23 · PVG 03:23 · LAX 12:23 · JFK 15:23
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.