3 Replies Latest reply on Dec 4, 2008 10:50 PM by anirudhs

    Retrieve Cookies from a HTTP response

      I am trying to login to an HTTP application, using the following Air AJAX/HTML code, and then get the cookies from response for further http calls. I do not see the cookies being printed in the trace call.

      How do I retrieve the cookies from a HTTP response that can I use for future HTTP calls?

      var loader = new air.URLLoader();
      var request = new air.URLRequest(" http://localhost:8080/TestLoginApp/");
      request.method = air.URLRequestMethod.POST;
      var params = 'context=default&username=abc&password=xyz&button=+SIGN-ON+';
      request.data = params;

      function configureListeners(dispatcher) {
      dispatcher.addEventListener(air.HTTPStatusEvent.HTTP_RESPONSE_STATUS, httpResponseStatusHandler);

      function httpResponseStatusHandler(event) {
      air.trace("httpResponseStatusHandler: " + event);