How to modify HTTP Headers in Android and IOS Apps/Browsers?

Sagar Soni

HTTP(s) Headers are key-value pairs that the client or server can use to pass additional information along with an HTTP(s) request or response.

The ability to modify the headers of traffic that pass through your browser easily is what every developer would want to have. By modifying headers, developers can manipulate the behaviour of web servers and clients, enabling advanced functionalities and enhanced browsing experiences.

Intercept HTTP traffic using Requestly in Android

Setup Requestly on your Android Phone

  1. First, head over to Requestly and download and install desktop app on your system.
  2. Once installed, open the Requestly desktop app and click on Connect apps
  3. Then, choose the Mobile apps and browsers section:
  4. Then, choose the Android option and click on Setup Instructions
  5. You will get a list of setup instructions that will tell you how to install a proxy on your Android device to enable Requestly to intercept traffic from your Android device.

You can read more about modifying HTTP traffic on your Android device here.

Intercept HTTP traffic using Requestly in iOS

Setup Requestly on your iPhone

  1. First, head over to Requestly and download and install desktop app on your system.
  2. Once installed, open the Requestly desktop app and click on Connect apps
  3. Then, choose the Mobile apps and browsers section:
  4. Then, choose the iOS option and click on Setup Instructions
  5. For the next steps, you should get a list of setup instructions that will tell you how to install a proxy on your iPhone to enable Requestly to intercept traffic from your iPhone.

You can read more about modifying HTTP traffic on your iPhone here.

How to modify HTTP headers using Requestly

  1. Select HTTP Rules from the sidebar to create a headers rule to modify the headers.
  2. Click on New Rule in the Top-Right.
  1. Next, Select the Modify Headers Rule from the list of rules. This should navigate you to the rule editor.
  2. Define for which requests you want the modifications to be made.

    eg: If you want to bypass CORS for production.com/api

  3. Select Response headers to override the headers
  4. Save the rule.

Check if the configured sites in your phone have their headers modified. You can check if a rule has been applied on the traffic logger.

Request Headers modification done by Requestly are not visible in the Browsers devtool but they are actually modified.

Sagar Soni
Sagar is the co-founder and CTO of Requestly. When he’s not busy architecting the next big thing in software development, you’ll likely find him behind the wheel, cruising the streets and enjoying the thrill of the drive. For Sagar, it’s all about the code by day and the open road by night.

Contents​

Subscribe for latest updates​

Share this article

Related posts