Invalid header cookie when integrate twitter in android

前端 未结 1 1204
余生分开走
余生分开走 2021-01-12 16:54

I\'ve integrated Twitter for Android using this tutorial

It used to run normally, but suddenly it started showing the following error:

05-23 2

相关标签:
1条回答
  • 2021-01-12 17:09

    Your expires needs to be in the format:

    Sat, 23 May 2015 16:17:12 GMT
    

    Lose the dashes and your TZ needs to be GMT.

    Assuming that you are using SimpleDateFormat, this is equivalent to the format string:

    "EEE,  d MMM yyyy HH:mm:ss zzz"
    

    To set the timezone to GMT:

    formatter.setTimeZone(TimeZone.getTimeZone("GMT"));
    
    0 讨论(0)
提交回复
热议问题