clientCertificate.post(options)
Method Description |
Method used to send a SSL secured POST request to a remote service and return the response.
Important:
If negotiating a connection to the destination server exceeds 5 seconds, a connection timeout occurs. If transferring a payload to the server exceeds 45 seconds, a request timeout occurs. |
Returns |
An https.ClientResponse Object |
Supported Script Types |
Server scripts For more information, see SuiteScript 2.x Script Types. |
Governance |
10 units |
Module |
|
Since |
2019.1 |
Parameters
The options
parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
Since |
---|---|---|---|---|
|
string |
required |
The URL address of the remote server. |
2019.1 |
|
string |
required |
The ID of the client certificate. |
2019.1 |
|
string |
required |
The POST data to be sent to the remote server. |
2019.1 |
|
object |
optional |
The HTTPS headers associated with the request. For more information, see HTTPS Header Information. |
2019.1 |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/https/clientCertificate Module Script Sample.
// Add additional code
...
var response = cert.post({
url: "https://anyurl.any",
certId: "custcertificate1", // replace with the ID of a predefined, existing certificate
body: "myPostData"
});
...
// Add additional code