# Reading client status with httpGet

**URL:** <https://forum.inductiveautomation.com/t/reading-client-status-with-httpget/31745>\
**Category:** Ignition\
**Created:** [January 30, 2020, 7:07am UTC](https://forum.inductiveautomation.com/t/reading-client-status-with-httpget/31745 "2020-01-30T07:07:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sonny\_Vallgren](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Sonny\_Vallgren](https://forum.inductiveautomation.com/u/Sonny_Vallgren)\
**Post date:** [January 30, 2020, 7:07am UTC](https://forum.inductiveautomation.com/t/reading-client-status-with-httpget/31745/1 "2020-01-30T07:07:39Z")

</div>

Hi all,

Is it possible to read [http://localhost:8088/main/data/vision/status/sessions](http://localhost:8088/main/data/vision/status/sessions) with httpGet?

```auto
response = system.net.httpGet("http://localhost:8088/main/data/vision/status/sessions", username = un ,password = pw)

```

I’ve made a few attempts but always receive “IOError: Server returned HTTP response code: 403 for URL: [http://localhost:8088/main/data/vision/status/sessions/](http://localhost:8088/main/data/vision/status/sessions/)” which seems to be authentication.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 30, 2020, 6:44pm UTC](https://forum.inductiveautomation.com/t/reading-client-status-with-httpget/31745/2 "2020-01-30T18:44:31Z")

</div>

You would need to have a valid session ID cookie. Obtaining one is not trivial - for now, at least, you’ll need to make a separate request to the authentication endpoint, then use the JSESSIONID cookie used during that request to issue your actual request to the API endpoint.

---

<div class="post-metadata">

**Author:** ![Sonny\_Vallgren](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Sonny\_Vallgren](https://forum.inductiveautomation.com/u/Sonny_Vallgren)\
**Post date:** [January 30, 2020, 7:02pm UTC](https://forum.inductiveautomation.com/t/reading-client-status-with-httpget/31745/3 "2020-01-30T19:02:53Z")

</div>

Thank’s for your answer.

I managed to get the cookie, but I’m not sure how to pass that cookie when calling httpGet?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 30, 2020, 7:13pm UTC](https://forum.inductiveautomation.com/t/reading-client-status-with-httpget/31745/4 "2020-01-30T19:13:06Z")

</div>

You can manually specify your JSESSIONID by passing a `Cookie: JSESSIONID=<yourID>` header in your POST.

---

<div class="post-metadata">

**Author:** ![Sonny\_Vallgren](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Sonny\_Vallgren](https://forum.inductiveautomation.com/u/Sonny_Vallgren)\
**Post date:** [January 30, 2020, 7:42pm UTC](https://forum.inductiveautomation.com/t/reading-client-status-with-httpget/31745/5 "2020-01-30T19:42:08Z")

</div>

I’ll try that tomorrow.
