---
schema_version: "1"
id: fcdf81823020e28cae1fadf63c8a6252ca170d6bbe49e8464c14e6bc0e222879
title: AMPscript HTTP Functions
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/ampscript/references/fun_http/mc-ampscript-reference-http.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-http/mc-ampscript-reference-http.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: eafe9bbfc1bc6741606813aee46f8643f0b2e2b44b4c7441b2201538cb3b332c
products:
  - AMPscript for Marketing Cloud
  - Marketing Cloud
---
# 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()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-http/mc-ampscript-reference-http-get.md)                     | Returns the content from a specified URL.                                       | ✅&nbsp;Yes | ❌&nbsp;No  |
| [HttpPost()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-http/mc-ampscript-reference-http-post.md)                   | Sends data to a URL using the POST method.                                      | ✅ Yes      | ❌ No       |
| [HttpPost2()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-http/mc-ampscript-reference-http-post2.md)                 | Sends data to a URL using the POST method with additional error handling.       | ✅ Yes      | ❌ No       |
| [IsChtmlBrowser()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-http/mc-ampscript-reference-http-is-chtml-browser.md) | Returns a value that indicates if a device’s user agent is a CHTML browser.     | ✅ Yes      | ❌ No       |
| [RedirectTo()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-http/mc-ampscript-reference-http-redirect-to.md)          | Creates a link using data from an attribute, data extension field, or variable. | ✅ Yes      | ❌ No       |
| [RequestHeader()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-http/mc-ampscript-reference-http-request-header.md)    | Retrieves the header from an HTTP request for a landing page.                   | ✅ Yes      | ❌ No       |
| [UrlEncode()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-http/mc-ampscript-reference-http-url-encode.md)            | Modifies a string to only include characters that are safe to use in URLs.      | ✅ Yes      | ✅&nbsp;Yes |
| [WrapLongURL()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-http/mc-ampscript-reference-http-wrap-long-url.md)       | Returns a shortened URL when provided with a long URL.                          | ✅ Yes      | ❌ No       |

<!-- In case you're wondering why this folder is called "fun_http" and not just "http", our build system was seeing relative links to "http/<filename>.md" as external links. This led to broken links. -->
