HTTPPost

Overview

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. 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 the encoding, the application assumes all returned data will use the character set WindowsCodePage 1252. Marketing Cloud sets the timeout for this function at 30 seconds.

Syntax

HTTPPost(1, 2, 3, 4, 5, 6)

Function Properties

OrdinalTypeDescription
1stringRequiredURL receiving posted content
2stringRequiredSpecified content-type header value
3stringRequiredContent to post to URL
4arrayRequiredArray of header names included in POST request
5arrayRequiredArray of header values included in POST request
6arrayRequiredArray containing HTTP code of response to function and any additional response header names and values

Example