---
title: "Forward a single http OPTIONS request via a proxy running on the device."
method: OPTIONS
path: "/sessions/{sessionId}/device/proxy/http/{targetHost}/{targetPort}/{targetPath}"
tags: ["HTTP Proxy"]
---

# Forward a single http OPTIONS request via a proxy running on the device.

`OPTIONS /sessions/{sessionId}/device/proxy/http/{targetHost}/{targetPort}/{targetPath}`

## Request

- Base URL: `https://api.us-west-1.saucelabs.com/rdc/v2`
- URL: `https://api.us-west-1.saucelabs.com/rdc/v2/sessions/{sessionId}/device/proxy/http/{targetHost}/{targetPort}/{targetPath}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/saucelabs/apis/real-device-access-api-reference/docs/sessions/:sessionId/device/proxy/http/:targetHost/:targetPort/:targetPath/options.ts> (a function with typed inputs; its response is checked against the schema)

Forward a single http request via a proxy running on the device. Transparently forwards the provided OPTIONS request and proxies the response from the server as the proxy in the device receives it

## Path parameters

- `sessionId` string, required
- `targetHost` string, required
- `targetPort` string, required
- `targetPath` string, required

## Response `200`

Command executed successfully

- object

## Other responses

- `400`: Bad Request
- `401`: Not Authorized
- `404`: Not Found
- `429`: Too many requests

---

[API](https://skmtc.dev/saucelabs/apis/real-device-access-api-reference.md) - [All operations](https://skmtc.dev/saucelabs/apis/real-device-access-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/saucelabs/apis/real-device-access-api-reference/revisions/f845a4b66e37?raw)
