function (url, success, failure)
{
	// Attempt to get the URL
	var req = mHTTP.get (url);

	// Whenever a response is received
	req.on ("response", function (res)
	{
		// Check if response is OK
		if (res.statusCode === 200)
			success (res);

		// Some unexpected response
		else failure ("bad response" +
			" (" + res.statusCode +
			") " + res.statusMessage);
	});

	// Whenever an error is thrown
	req.on ("error", function (err)
	{
		failure (err.message);
	});
}
function (url, success, failure)
{
	
	var req = mHTTP.get (url);

	
	req.on ("response", function (res)
	{
		
		if (res.statusCode === 200)
			success (res);

		
		else failure ("bad response" +
			" (" + res.statusCode +
			") " + res.statusMessage);
	});

	
	req.on ("error", function (err)
	{
		failure (err.message);
	});
}
function ( url , success , failure ) { // Attempt to get the URL var req = mHTTP . get ( url ) ; // Whenever a response is received req . on ( "response" , function ( res ) { // Check if response is OK if ( res . statusCode === 200 ) success ( res ) ; // Some unexpected response else failure ( "bad response" + " (" + res . statusCode + ") " + res . statusMessage ) ; } ) ; // Whenever an error is thrown req . on ( "error" , function ( err ) { failure ( err . message ) ; } ) ; }
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////