Additional Information
This section describes how the API works behind the scenes. You cannot change any of it because that's how Secure Gateways operate, but it should give you an idea of what is involved.
When you open the main URL in a browser (
https://<server>/userportal/?https://<webserver>/<app-name>.js#/launch
), you invoke the Secure Gateway.The Gateway loads the Parallels Web Client and, using the second part of the URL above, performs a GET request with a
<script>
tag (this overcomes issues when working across varying domains):<script type='text/javascript' src='https://webserver.host/getAppInfo/JSONP/7EB8A5D1C2D3E986AB432D'></script>
RAS Web Client obtains the JSON payload and then calls the following Gateway function passing the parameters from the JSON payload:
_RASWebClientLoadApp ({ u: 'user-name', q: 'user-password', a: '#4', p: 'c:\\temp\\another.txt', extra: { redirectPrinter: true, redirectLinks: true, redirectSound: true } })
;The function call above launches the resource in the browser using Parallels Web Client.