2 Replies Latest reply on Oct 16, 2009 5:07 AM by scarenci

    HTTPService accessing localhost crazy !?

    scarenci

      Hello everbody,

       

                   I'm using the HTTPService to get a php page that returns an xml. The problem is that when I run HTTPService, he is searchig the "crossdomain" at "localhost" ????????? and also excute search on localhost ??????? Even if I choose a different path!!

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application
          xmlns:mx="http://www.adobe.com/2006/mxml"
          layout="vertical"
          creationComplete="security(); test.send();">

       

      <mx:HTTPService
          resultFormat="e4x"
          id="test"
          showBusyCursor="true"
          url="{caminho}"
          method="GET"
          fault="{falhouHTTP(event);}"
          result="{resultadoHTTP(event.result);}">
      </mx:HTTPService>

       

      private function secury():void
      {
          Security.allowDomain("*");
          Security.loadPolicyFile("http://teste/pastas/crossdomain.xml");
      }


      The code is not anything very different from what is on the Internet, only uses the security to enable the "https". If anyone can help thank you very much, as I tried everywhere on the internet and I do not know what else to try.

       

      Thank you for your cooperation!

       

      Rafael Scarenci