iOS Devices Interception

Learn how to set up Requestly to intercept, monitor, and debug HTTP requests on your iOS Apps for iOS app development, debugging, and testing.

When working with iOS apps, debugging HTTP requests can be challenging. Requestly offers an easy-to-use solution for monitoring, modifying, and debugging HTTP requests and responses during development or QA testing. Once you're familiar with the HTTP Interceptor and network table, you can follow step-by-step instructions to set up Requestly for intercepting network traffic on your iOS devices, ensuring a fully functional interception setup for your iOS app development needs.

iOS device interception is only supported on the Desktop App.

Setup iOS Devices for Interception

Setting up HTTP interception on physical iOS devices requires configuring a proxy and CA Certificate to intercept network traffic.

Part 1 — Configure Proxy

Step 1: Preparation

Connect you iOS Device(iPhone or iPad) on the same network as your computer having Desktop App.

These steps are available on the Desktop app as well.

To open, click on Connect App button, and switch to Mobile apps & browsers tab.
Click on Setup Instructions next to iOS.

Step 2: Open Proxy Settings

On your iOS device, navigate to Settings → Wi-Fi → Select current Wi-Fi → Configure Proxy

Step 3: Configure Proxy

Set the proxy settings to Manual. Then, enter the IP address of the computer and the proxy port. You can find these on the top banner of the Requestly desktop app.

Step 4: Validate Proxy

To ensure that the proxy has been set, visit http://amiusing.requestly.io(remember to use HTTP, not HTTPS) on Safari Browser of your mobile. If the rendered page shows success, the proxy is now correctly configured. You should be able to see some traffic on Desktop app, but body of request/response is encrypted. To decrypt that we will have to install the CA Certificate in upcoming steps.

Part 2 — Install CA Certificate

Step 1: Download CA Certificate

Now open Safari on your IOS device and go to http://requestly.io/ssl(remember to use HTTP, not HTTPS). This should download a custom profile on your device which contains the Requestly CA certificate.

Step 2: Install the Certificate

Now to install the downloaded custom profile go to Settings. You should see a new option at the top that says Profile Downloaded. Select that to install the profile. Click on Install.

Step 3: Trust the Certificate

Finally, you need to enable trust for CA certificates that were installed along with this custom profile. Go to Settings → General → About → Certificate Trust Settings. You should see a certificate under the name RQProxyCA. Enable the trust for Requestly's certificate authority for intercepting HTTPS traffic.

Step 4: Validate Setup

Once everything is setup properly you should be able to see decrypted traffic on Desktop App. Clear the log from desktop app and check the request/response body of few requests, you should be able to see readable data.

Turn off Interception

Remember to disable the HTTP Proxy in your Settings when you stop using Requestly, otherwise, you'll get confusing network failures in your applications! You just need to set the network proxy(part 1) the next time you want to debug with Requestly.

  1. Navigate to Settings → Wi-Fi → Select current Wi-Fi → Configure Proxy

  2. Set the proxy settings to Off

Updated on