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 the encoding type, the application assumes all returned data uses the character set WindowsCodePage 1252. Change this default by contacting your Marketing Cloud account representative. Include as many name and value pairs as necessary.


HTTPPost2(1, 2, 3, 4, 5, 6, 7, 8)

Function Properties

1stringRequiredURL to receive posted content
2stringRequiredSpecified content-type header value
3stringRequiredContent to post to specified URL
4stringRequiredIndicates whether call returns an exception for error. True indicates the system returns an exception.
5stringRequiredOutput parameter used to contain string representation for the status of the HTTP request, such as OK.
6stringRequiredOutput parameter used to contain returned response body information from the HTTP POST request.
7stringRequiredName of additional headers to add to HTTP POST request
8stringRequiredValue of additional headers to add to HTTP POST request


This example posts a blank payload to, as well as information for the Authorization and User-Agent headings.

The system returns the HTTP status code to the specified variable.