# Login on API REST - Cookies management

**URL:** <https://discuss.kotlinlang.org/t/login-on-api-rest-cookies-management/14686>\
**Category:** Android\
**Created:** [October 16, 2019, 12:04pm UTC](https://discuss.kotlinlang.org/t/login-on-api-rest-cookies-management/14686 "2019-10-16T12:04:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![julien.henrotin](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@julien.henrotin](https://discuss.kotlinlang.org/u/julien.henrotin)\
**Post date:** [October 16, 2019, 12:04pm UTC](https://discuss.kotlinlang.org/t/login-on-api-rest-cookies-management/14686/1 "2019-10-16T12:04:05Z")

</div>

Hello ! 😃  
I actually work on a application developed with Kotlin who use the Microstrategy REST API. I need to connect with my login on the server so I use the login request ( [MicroStrategy REST](https://demo.microstrategy.com/MicroStrategyLibrary/api-docs/index.html#!/Authentication/postLogin) ). Before start development I tested REST request with REST tester on my web browser. When I do that it works I can login and I received the server answer.

 ![request%20login](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/6/61173194c181a1de79646dec864bc0afc911936d.png)

But when I tried with my Kotlin application I don’t have server answer. Not even an error message. ![kotlin%20request](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/b/b2b8811150125eff73ad31394a9687c7f71a0de7.png) ![kotlin%20answer](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/2/21ad0a4e1a2be29bf4cad06dd1aa6a8ccf4ae025.png)

After reading this documentation I realised there is 3 steps for login. ([https://lw.microstrategy.com/msdz/MSDL/GARelease\_Current/\_GARelease\_Archives/109/docs/projects/RESTSDK/Content/topics/REST\_API/REST\_API\_Authentication.htm](https://lw.microstrategy.com/msdz/MSDL/GARelease_Current/_GARelease_Archives/109/docs/projects/RESTSDK/Content/topics/REST_API/REST_API_Authentication.htm)) The client send cookie information to the server. So maybe it is the problem, but i don’t understand how manage cookies.

Do you have idea how to solve this problem ? Thank you in advance !👍

PS : With my Kotlin application I already tried a simple request like get status to check if the client communicates with the server and yes it works.
