---
schema_version: "1"
id: 84856ce3542a627c789fee7a4ba60a543c7b906989fcac5385929e31cac6a70f
title: GetRequestHeader
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_platformHTTPPropertyGetRequestHeader.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_platformHTTPPropertyGetRequestHeader.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6d674168a51135072ef085ad013cb248d6870f5246bd844b6f3c88fc471e1652
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# GetRequestHeader

Retrieves the value of an HTTP request header.

## Syntax

GetRequestHeader(1)

## Function Properties

| Ordinal | Type   | Description                              |
| ------- | ------ | ---------------------------------------- |
| `1`     | String | The name of the HTTP header to retrieve. |

## Example

To use this function, pass it the name of the HTTP header that you want to retrieve.

```js
<script runat="server">
  var requestData = Platform.Request.GetRequestHeader('Accept-Language');
  Platform.Response.Write(requestData);
</script>
```

The response contains the value of the specified header.

```
en-US,en;q=0.9
```
