ssCore.HTTP.resource

Identifies the target of the HTTP request on the server identifed by HTTP.host. This could be a file you want to retrieve, a CGI script you want to execute, etc.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

resource - The target of the HTTP request, assumed to be a relative reference from ("/") the root of the host.


Output Parameters:

No output parameters.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.HTTP.resource( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.HTTP.resource( paramsObject );


Notes:

HTTP is used to request resources, not just files. A resource is some parcel of information that can be identified by a URL (it's the "R" in URL). The most common kind of resource is a file, but a resource may also be a dynamically-generated query result, the output of a CGI script, or something else. It may help to think of a resource as similar to a file, but more general. As a practical matter, almost all HTTP resources are currently either files or server-side script output.

                

Examples:

ssCore.HTTP.resource({resource:"cgi-bin/getdata.php"});