AMPscript HTTP Functions
Use the AMPscript HTTP functions to retrieve and transform web data.
This table lists all of the AMPscript functions related to working with web content. The value in the Engagement column indicates whether Marketing Cloud Engagement supports the function. The value in the Next column indicates whether Marketing Cloud Next supports the function.
| Function Name | Description | Engagement | Next |
|---|---|---|---|
| HttpGet() | Returns the content from a specified URL. | ✅ Yes | ❌ No |
| HttpPost() | Sends data to a URL using the POST method. | ✅ Yes | ❌ No |
| HttpPost2() | Sends data to a URL using the POST method with additional error handling. | ✅ Yes | ❌ No |
| IsChtmlBrowser() | Returns a value that indicates if a device’s user agent is a CHTML browser. | ✅ Yes | ❌ No |
| RedirectTo() | Creates a link using data from an attribute, data extension field, or variable. | ✅ Yes | ❌ No |
| RequestHeader() | Retrieves the header from an HTTP request for a landing page. | ✅ Yes | ❌ No |
| UrlEncode() | Modifies a string to only include characters that are safe to use in URLs. | ✅ Yes | ❌ No |
| WrapLongURL() | Returns a shortened URL when provided with a long URL. | ✅ Yes | ❌ No |