Getting Started

Introduction

Installation

API Client

Overview

Make an API Request

Replay request from History

Import from cURL

Inspect Traffic

Overview

Filtering Traffic

Save Session

View Request/Response Details

HTTP Rules (Modify Traffic)

Overview

Redirect URL (Map Local, Map Remote)

Replace Strings (Switch Hosts, API Endpoints)

Modify Headers

Modify Request Body

Modify Response Body

Modify Query Params

Modify Cookies

Modify DOM/Inject scripts

Modify User Agents

Delay Request

Cancel Rule

Organizing Rules

Import/Export Rules from File

Pause/Resume Requestly

Rule Operators

Advance Targeting

Sharing Rules

Map Local

Map Remote

Pinning Rules

GraphQL Support

Edit and Replay

Import Setting from Charles Proxy

Test URL Condition

Mock Server

Overview

Create New Mock API

Test Mock API

Pre-Configured Mocks

File Server

Overview

Create New Mock File

Sessions

Overview

Map Remote

The Map Remote feature lets you change the request's location to a new destination location such that the response is transparently served from the new location as if it was the original request.

How to use

You can use Redirect/Replace rule to set up mappings.

You can check out the demo here:

https://youtu.be/lOt1kGKTq-w

Matching Requests

All the Requestly rules can match requests based on the URL, host, path, and rule operators. With the help of these operators, you can define rules to match using the wildcard, regex, or string matching types. You can also perform advanced targeting on the requests.

You can perform regex pattern matching in replace rule to extract information from the URL:

For example: Extract domain, pathName and extension for URLs ending with .jpg

/(https:\\/\\/[^\\/]*)(.+)(\\.jpg)$/i

Similar Examples

Map local resources on the production site

Untitled

You can find the above redirect rule here.

Switch domain to staging environment using replace rule

Untitled

You can find the above replace the rule here.

Popular Use Cases