Skip to end of banner
Go to start of banner

httpPost - ex

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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.

requestHttpRequestYesA HttpRequest object containing headers, cookies, parameters.
postDataObjectvariable: primitive type, array or structNoData 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


  • No labels