2 Replies Latest reply on Mar 13, 2009 2:39 AM by Tonibache

    navigateToURL - custom http header - AIR application

    Daystaravin
      Hi,
      I am trying to send a custom http header for the navigateToURL, But the Header "TestHeader" is not shown when the browser IE is opened.
      <code>
      var header:URLRequestHeader = new URLRequestHeader("TestHeader", "TestHeader");
      var request:URLRequest = new URLRequest(" http://192.118.0.2:8080/ph.jsp");
      request.method = URLRequestMethod.POST;
      request.data = new URLVariables("name=testqs");

      request.requestHeaders.push(header);
      try {
      navigateToURL(request);
      } catch (error:Error) {
      trace("Unable to load requested document.");
      }

      </code>
      I am using FlexBuilder 3 /Flash 10/ IE 7
      Appreciate your valuable inputs.

      Is crossdomain.xml needed for an AIR application?
      Text Text