Android Http get Session Cookie

前端 未结 2 1775
被撕碎了的回忆
被撕碎了的回忆 2020-12-01 11:44

I didn\'t really want to post here as there is so much information on the net, but I\'ve trawled the depths and can\'t figure it out.

Ok so I can\'t get this to work

相关标签:
2条回答
  • 2020-12-01 12:01

    Ok the code above actually does work, I just didn't retrieve the header correctly to see all the fields. The issue was I had an invalid session Id but the webserver I was using has the WORST error handling mechanisms :-) thanks for listening!

    0 讨论(0)
  • 2020-12-01 12:19

    Try getCookieStore().addCookie() on your DefaultHttpClient object, before sending the request.

    0 讨论(0)
提交回复
热议问题