Create Request Function

The create_request function creates a request and returns a new request object. It uses the following format:

create_request(url, method, body, encoding)

where:

  • url is a string that contains the URL that identifies the request endpoint.

  • method is a string that identifies the HTTP request method. It can include one of the following values:

    • GET

    • POST

  • body is a string that contains the body of the request.

  • encoding is a string that identifies how to encode the request body. It can include one of the following values:

    • iso-8859-1

    • utf-8

    • utf-16

For example, the following code creates a simple GET request to a URL:

var req = sso_client.create_request("http:\\siebel\eai_enu", "GET", "", "utf-8");

For more information, see Request Object.