1 Reply Latest reply on Apr 27, 2009 7:55 AM by vsoneta

    navigateToURL and POST

    Level 1

      I'm trying to post some data to an external https URL from AIR app with request method set to POST. For some reason the data is sent as URL query params always even if I set the method to POST. Any one has any idea how to force POST method?

      Here is the code that I'm using.

      var urlReq:URLRequest = new URLRequest("https://xxxx/logon.do");
      var variables:URLVariables = new URLVariables();
      variables.login = "test";
      variables.password = "test";
      urlReq.method = URLRequestMethod.POST;
      urlReq.data = variables;

      Thanks in advance.