0 Replies Latest reply on Aug 23, 2012 6:11 AM by asharazeem

    Sand Box Error on HttpRequest

    asharazeem Level 1

      Hi,

      I am trying to access the getSearchResults Method of Fotolia's Rest API using a HTTPRequest as follows,

       

      var httpService:HTTPService = new HTTPService();

      httpService.url=

      "http://"+KEY+"@api.fotolia.com/Rest/1/search/getSearchResults?search_parameters[words]=Smile&sear ch_parameters[limit]=100";

       

        httpService.method = "Get";

        httpService.resultFormat = "text";

        httpService.addEventListener(ResultEvent.RESULT, onHttpResult, false, 0, true);

        httpService.addEventListener(FaultEvent.FAULT, onHttpFault, false, 0, true);

        httpService.send();

       

       

      it runs fine locally but when I deploy it to a server I get this error

       

      Error #2048: Security sandbox violation: http://www.crickopedia.com/Ashar/testFotoliaSecurity1/test.swf cannot load data from http://nXmpat7DpF9X3sy9qvWqSLL8iXgN9nXm@api.fotolia.com/Rest/1/search/getSearchResults?sea rch_parameters//nXmpat7DpF9X3sy9qvWqSLL8iXgN9nXm@api.fotolia.com/Rest/1/search/getSearchResults?search_parameters[words]=Smile&search_parameters[limit]=10 0.


      MoreOver it works fine on firefox but on any other browser like IE, Safari it throws the above error.

      Do you have any suggestion?Am I missing something here?


      Ashar