Getting Started
Getting Started
Installation
Installation
Inspect Traffic
Inspect Traffic
HTTP Rules (Modify Traffic)
HTTP Rules (Modify Traffic)
Overview
Request Modification — Redirect URL (Map Local, Map Remote)
Request Modification — Replace Strings (Switch Hosts, API Endpoints)
Request Modification — Modify Headers
Request Modification — Modify Request Body
Response Modification — Modify Response Body
Request Modification — Modify Query Params
Request Modification — Modify User Agents
Request Modification — Delay Request
Request Modification — Map Local
Request Modification — Map Remote
Response Modification — Modify DOM/Inject scripts
Response Modification — Cancel Rule
Predefined Functions
Organizing Rule — Grouping
Organizing Rule — Import/Export Rules from File
Organizing Rule — Pause/Resume Requestly
Organizing Rule — Rule Operators
Organizing Rule — Advance Targeting
Organizing Rule — Sharing Rules
Organizing Rule — Pinning Rules
GraphQL - Modify Request & Response
Import / Export — Charles Proxy Rules
Test Rules — Test URL Condition
Test Rules — Test this Rule
Session Book
Session Book
File Server
File Server
Public API
Public API
Guides
Guides
TroubleShooting
TroubleShooting
Subscription & Billing
Subscription & Billing
Getting Started
Getting Started
Installation
Installation
Inspect Traffic
Inspect Traffic
HTTP Rules (Modify Traffic)
HTTP Rules (Modify Traffic)
Overview
Request Modification — Redirect URL (Map Local, Map Remote)
Request Modification — Replace Strings (Switch Hosts, API Endpoints)
Request Modification — Modify Headers
Request Modification — Modify Request Body
Response Modification — Modify Response Body
Request Modification — Modify Query Params
Response Modification — Modify DOM/Inject scripts
Request Modification — Modify User Agents
Request Modification — Delay Request
Response Modification — Cancel Rule
Organizing Rule — Grouping
Organizing Rule — Import/Export Rules from File
Organizing Rule — Pause/Resume Requestly
Organizing Rule — Rule Operators
Organizing Rule — Advance Targeting
Organizing Rule — Sharing Rules
Request Modification — Map Local
Request Modification — Map Remote
Organizing Rule — Pinning Rules
GraphQL - Modify Request & Response
Import / Export — Charles Proxy Rules
Test Rules — Test URL Condition
Predefined Functions
Test Rules — Test this Rule
File Server
File Server
Public API
Public API
Guides
Guides
Session Book
Session Book
Subscription & Billing
Subscription & Billing
Debug HTTPs requests in iOS Simulator
To start debugging the network traffic of your apps running inside iOS simulator, follow these steps
- Download & install Requestly Desktop app
- To install Requestly Root Certificate on your Mac:
a. Navigate to
Connected Apps
in the sidebar and choose target Everywhere: System Wide
b. Enter system password if prompted
c. Ensure that the
Install & Trust Certs
step is successful- Note the proxy URL and port shown at the top of the App. This is where requestly is running it's proxy and where you need to redirect your traffic to from iOS emulator
- Open XCode and choose your project. In the menu click
Product > Scheme > Edit Scheme
- Set enivronment variables
http_proxy
andhttps_proxy
to the proxy URL given by Requestly (refer step #3)
- Start the emulator
Xcode > Open Developer Tool > Simulator
- To verify the proxy settings: Open Safari and navigate to
http://amiusing.requestly.io/
If it saysSuccess
, all good till now. Else retry from step #2
- Now you need to install Requestly's Root Certificate in the emulator
- In Safari, navigate to
http://requestly.io/ssl
(Use http here, not https) and tapAllow
to download the Requestly Root Certificate - After downloading the certificate, navigate to
General
inSettings
and chooseDevice Management
- Open
RQProxyCA
and clickInstall
- Since this certificate has been installed, we need to mark it as trusted. Navigate to
Settings > About > Certificate Trust Settings
and enable trust forRQProxy CA
- Once the certificate has been trusted, you can now intercept traffic using Requestly and create rules to modify them as required
You should now be able to see your rules being applied in the traffic table inside Requestly.
But here are a few more tips to fully utilize requestly with the debugging tools that iOS simulator offers
Open native Web Inspector or Developer Tool for Safari
In case you want to also see the requests in the safari devtools of your simulator:
- Launch Safari in iOS Simulator:
- Launch Safari on your mac and navigate to
Develop
in the menu bar,
- Find your Simulator device and tap the webpage you want to inspect.
Bypass CORS for Safari running in simulator
You might sometimes run into CORS issues when trying to apply rules during debugging.
To disable CORS for safari inside the iOS simulator:
- Navigate to the
Develop
menu in Safari and
- Check
Disable Cross-Origin Restrictions
andLocal FIle Restrictions