0 Replies Latest reply on Aug 21, 2012 8:36 AM by Dirk Vandervoort

    HTTPService fails to connect on Android 4.0.x

    Dirk Vandervoort
      • On pre-4 Android and iOS devices the method below fires me into resultHandler just fine.
      • On 4.0.4 device the method below fires me into faultHandler with no informative message.

       

       

       

      What's up with that?

       

      TIA

       

      private function RequestThing(url:String, username:String, password:String):void {

      var http:HTTPService = new HTTPService();   

      http.addEventListener( ResultEvent.RESULT, resultHandler );

      http.addEventListener( FaultEvent.FAULT, faultHandler );

      var param:Object = {

         "request" : "gettthing",

         "username": username,

         "password": password

         };

      http.url = url;

      http.send(param);

      }