HTTPPost
This function posts content to the specified URL. This function only works with HTTP on port 80 and HTTPS on port 443. Non-standard port assignments cause this function to fail. The Marketing Cloud honors any character set returned in the HTTP headers via Content-Type. For example, you can use a UTF-8 encoded HTML file with Content-Type: text/html; charset=utf-8 included in the header. If the header does not specify encoding, the application assumes all returned data will uses the character set WindowsCodePage 1252. You can change this default by contacting your Marketing Cloud account representative. Include as many header name and value pairs as necessary.
HTTPPost(1, 2, 3, 4, 5, 6)
Ordinal | Type | Description | |
---|---|---|---|
1 | string | Required | URL to receive posted content |
2 | string | Required | Specified content-type header value |
3 | string | Required | Content to post to specified URL |
4 | string | Required | Output parameter used to contain string representation for the status of the HTTP request, such as OK |
5 | string | Name of additional headers to add to HTTP POST request | |
6 | string | Value of additional headers to add to HTTP POST request |
The system returns the HTTP status code to the specified variable.