makeWebRequest reponse headers or Set-Cookie headers

Hello!

I am developing widget for controlling car alarm system via web requests. After auth server returns 'Set-Cookie' header which is used in all other requests. If I manually hard-code such header all works OK, but how to extract response header(s) in callback. Can I access response object or how to store Cookies?
  • You don't get access to read the HTTP headers that come with the response, this stuff is all handled on the Garmin Connect Mobile side. Have you done any testing to see if Garmin Connect Mobile sets the cookie for you? If it doesn't, you may need to write a web service of your own that gets the Set-Cookie header and puts it into the response JSON data.

    Travis
  • Set-Cookie not handled by Garmin Connect Mobile app

    thank you, Travis!

    Just tried as you said: Garmin Connect Mobile didn't handled 'Set-Cookie' header, so auth didn't work.

    So, the only possibility is to write own web service or may be create Android-companion app.

    I hope that Garmin will add possibility to parse Repose Headers or access Response Object or handle Set-Cookie by Garmin Connect Mobile app in future.