0 Replies Latest reply on Apr 25, 2011 2:50 PM by 2009 Matt

    Translate HTTPService request to the plain URI

    2009 Matt

      I'm using following AS code in Flex to get a person's profile:

       

      var httpService:HTTPService = new HTTPService();
      httpService.url="http://xyz.com/php/profile.php";
      httpService.useProxy=false;
      httpService.method="POST";
      httpService.resultFormat="e4x";
      httpService.addEventListener("result", httpResult);
      httpService.addEventListener("fault", httpFault);

       

      var code:Object = new Object();
      code.action="getProfile";              
      code.first_name="John";
      code.last_name="Smith";
      var ret:AsyncToken = httpService.send(code);

       

      How do I translate the above code into plain HTTP request as you type in a browser's address bar?

      I tried the following:

       

      http://xyz.com/php/profile.php?action=getProfile&first_name=John&last_name=Smith

       

      get nothing back. I know I'm using "GET" method in the browser's address bar.