ssCore.HTTP.headers

Allows you to specify additional HTTP headers.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

headers - HTTP headers separated by newlines. The last header must also have a trailing newline.


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


Notes:

See RFC 2068 (Hypertext Transfer Protocol - HTTP/1.1) for lists and explanations of available headers. The official home of the internet RFC documents is the IETF web site at http://www.ietf.org/home.html.

                

Examples:

The following example sets the header for a POST request.

ssCore.HTTP.headers({headers:"Content-Type: application/x-www-form-urlencoded\r"});