---
schema_version: "1"
id: 7451a576d3dfe38bd0643d35ea8570fd160a8bfe1edb01480465482775d1f3a4
title: HTTP Properties Functions
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_platformHTTPPropertyFunctions.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_platformHTTPPropertyFunctions.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 28f9c44ef5a19e90c6d253334ce7bd39292dd4efdfacd6bef1e62c9f451942c9
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# HTTP Properties Functions

You can use the Request object to retrieve various types of HTTP Request object properties and platform application values. The client browser passes this information to the server during an HTTP interaction, so this object contains information regarding the browser and session. These methods return a null value when no HTTP Request object exists or if the given value doesn't exist in the header object.

## Additional Properties

Use these properties as part of your calls. Each property returns a specific value associated with the Request object. If no valid Request object exists, the property returns a null or false value as applicable.

- Browser

  - Returns metadata related to the browser from the Request object as a JSON object:

    - `Platform`
    - `Browser`
    - `Version`
    - `MajorVersion`
    - `MinorVersion`

- ClientIP

  - Returns the IP address of the requesting client

- HasSSL

  - Returns a Boolean value indicating whether the current Request object supports SSL (HTTPS) usage

- IsSSL

  - Returns a Boolean value indicating whether the current Request object used an SSL (HTTPS) connection

- Method

  - Returns the HTTP method, such as GET or POST, for the Request

- QueryString

  - Returns the full query string for the Request object

- ReferrerURL

  - Returns the URL of the referring web address

- RequestURL

  - Returns the full URL of the Request object

- UserAgent

  - Returns the name of the browser associated with the Request

## Example

This call redirects the browser from an HTTP to an HTTPS URL by using the `IsSSL` and `HasSSL` properties to determine if the page uses SSL and supports SSL, respectively.

```js
<script runat="server">
  try {
    if(!Platform.Request.IsSSL && Platform.Request.HasSSL) {
          Platform.Response.Redirect('https' + Platform.Request.RequestURL.substring(4), true);
    };
  } catch (e) {
    Write(Stringify(e));
  };
</script>
```
