Sending a URL to a server

Flash Player 9 and later, Adobe AIR 1.0 and later

You can use the sendToURL() function to send a URL request to a server. This function ignores any server response. The sendToURL() function takes one argument, request , which is a URLRequest object (see Using the URLRequest class ). Here is an example:

var url = "http://www.example.com/application.jsp"; 
var variables = new air.URLVariables(); 
variables.sessionId = new Date().getTime(); 
variables.userLabel = "Your Name"; 
var request = new air.URLRequest(url); 
request.data = variables; 
air.sendToURL(request);

This example uses the URLVariables class to include variable data in the URLRequest object. For more information, see Using the URLLoader class .

// Ethnio survey code removed