ssCore.HTTP.method

Tells the plugin which method to use when submitting your request to the HTTP server.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

method - Request method for the HTTP request. Valid values include: get,post.


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.method( 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.method( paramsObject );


Notes:

Normally, "GET" is used to get a file or other resource, possibly with parameters specifying more exactly what is needed. In the case of form input, "GET" fully includes it in the URL, like:

http://myhost.com/mypath/myscript.cgi?name1=value1&name2=value2

"GET" is how your browser downloads most files, like HTML files and images. It can also be used for most form submissions, if there's not too much data. The limit varies from browser to browser but 1024 characters is generally the upper limit.

When you use the "POST" method, you supply data in a buffer (using HTTP.request) instead of using the URL. You can send as much data as you like using "POST".

                

Examples:

ssCore.HTTP.method({method:"POST"});