0 Replies Latest reply on Feb 7, 2007 2:27 AM by Imlucky7

    parameter passing in post method

    Imlucky7
      I am writing this code in Login.mxml page.


      var request:URLRequest = new URLRequest("HomePage.mxml");
      var variables:URLVariables = new URLVariables();
      request.method = URLRequestMethod.GET;
      variables.loginId = userName.text;
      request.data = variables;
      navigateToURL(request,'_self');

      then I can move ot HomePage.mxml properly.

      but when i want to send parameter in post method:

      CODE: request.method = URLRequestMethod.POST;

      Getting error page : "The page cannot be displayed."
      Can anybody tell me how can send parameter in post method.