performSimpleRequest

Syntax

app.performSimpleRequest(anyUrl);

Parameters

anyUrl string

Any valid URL.

Return value string

A string containing the complete and total server response.

Description

The performSimpleRequest() calls a URL and returns the response as a string.

Examples

** Call phpinfo.php on a local Studio Server**

var sURL = "http://localhost/StudioServer/server/wwtest/phpinfo.php";

var sResult = app.performSimpleRequest( sURL );

// Chop the result for display purposes
if( sResult.length > 200 )
{
	sResult = sResult.substr( 0, 200 );
	sResult += "...";
}

alert( sResult );

Supported versions

Adobe Version Supported
CC 2018
CC 2019
2020
2021