performSimpleRequest
Syntax

app.performSimpleRequest(anyUrl);
Parameters
anyUrl string
Any valid URL.
Return value string
On success (HTTP 200), a string containing the complete response body. On failure, the HTTP status code as a string (e.g. "404"). Returns "0" if the connection could not be established.
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 |
|---|---|
| 2023 | ✔ |
| 2024 | ✔ |
| 2025 | ✔ |
| 2026 | ✔ |