hi , stupid question but how to check session in android ?
i know curl code and it is working but when send a request from android device(with OpenConnection) or send a post request with nodeJs get different respond(always return one respond even if user not exist).
curl -H “Content-Type:application/json” -iX POST http://192.168.237.37:4984/contact/_session --data ‘{“name”:“Ali”,“password”:“pass01”}’
curl respond :
{“authentication_handlers”:[“default”,“cookie”],“ok”:true,“userCtx”:{“channels”:{"!":1,“802995093173184263581204L1”:29,“822992093171184965571004L1”:34,“822993093370184560521105L1”:56,“822997093176184264531202L1”:31,“83229709347711406851L1”:27,“8729930931781842605407L1”:41,“872996093179184360541906L1”:51,“882993093177184269511302L1”:12,“882998093171184260521503L1”:5,“882998093171184260521503L2”:4,“989122018835”:2},“name”:“Ali”}}
node js or java respond(even if user is invalid) :
{“authentication_handlers”:[“default”,“cookie”],“ok”:true,“userCtx”:{“channels”:{"!":1,“83229709347711406851L1”:27},“name”:null}}