1 Reply Latest reply on Apr 27, 2008 11:08 PM by anirudhs

    Getting SWF file from server using HTTPService

    ask4avinash
      I am not able to fetch SWF file from server using HTTPService.
      Following is the piece of code...

      httpSer = new HTTPService();

      httpSer.addEventListener(ResultEvent.RESULT,handleResult);
      httpSer.addEventListener(FaultEvent.FAULT,handleFault);

      httpSer.url = " http://localhost:8080/TestApplication/resources/test.swf";
      httpSer.send();

      My server even has crossdomain.xml file ...
      Also, ResultEvent is getting triggered, but in httpService.lastresult there I can find few bytes of data. WHile by simply hitting the URL in browser I can see theSWF file.
      Please tell me how can I fetch the swf File using HTTPService.
      I need to use HTTPService..because my real application will be using a proxy cache server so, I need to request file via HTTP request...