0 Replies Latest reply on Oct 8, 2009 6:51 AM by ab_online

    HTTPService - different behavior on mac and windows...

    ab_online

      My AIR application talks to a backend that does not have a server based proxy service. Doing a plain vanailla https POST...and finding out that my code works great on a mac but fails to get a response back to the result handler on a windows box...

       

      private function setupHTTPService():void {
                  httpserv = new HTTPService();
                  httpserv.url = "https://a.b.c.d:8081/sqlquery";     // IP addr goes here..
                  httpserv.method = "POST";
                  httpserv.resultFormat = "text";
                  httpserv.contentType = "text/plain";
              }

       

      In another method ---

      ......

          httpserv.request = qm.messageString();
                        httpserv.addEventListener("result", plistener = function (e:ResultEvent): void { gotdata( e,qm,gotconfig ) } );
                        httpserv.addEventListener("fault", flistener = function (e: Event): void { gotfailed( e,qm, gotconfig ) } );
                        httpserv.send();

      ....

       

      Handlers ---

              public function gotdata(e:ResultEvent, qm:QueryMsg, passthru:Function):void {
                  httpserv.removeEventListener("result",plistener);
                  httpserv.removeEventListener("fault",flistener);
                  handleData(e.result as String,qm)// handle receiving categories
                   ......
                  }
                    ...
              }
             
              public function gotfailed(e:Event,qm:QueryMsg,passthru:Function):void {
                  httpserv.removeEventListener("result",plistener);
                  httpserv.removeEventListener("fault",flistener);
                    ....
                  }

                 ....

                 }

       

      Setup the breakpoints on gotdata and gotfailed - don't even get a failure back when running the AIR app from a windows client. Tried with 3.3 and 3.4 SDK. Any thoughts?