Availability
This routine is available starting with katl-commons 4.0.17
Syntax
httpPost(url, request [, postDataObject])
Description
Executes a HTTP POST for the given URL using the specified HttpRequest object. The posted data can be either included in the request object (as name-value parameters) or it can be added as a separate parameter (in the case of JSON, struct etc).Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
url | string | Yes | The URL. |
request | HttpRequest | Yes | A HttpRequest object containing headers, cookies, parameters. |
postDataObject | variable: primitive type, array or struct | No | Data to be posted. |
The request parameter should have the type HttpRequest described here.
Return type
variable return type - depending on the left hand side operator type
Example
Using this routine, you can create a new ticket in the specified project based on certain conditions, and can pass information for the additional fields to be filled in for this ticket too.
See also