Node.js

Learn How to Set Up Requestly Proxy in Your Node.js Application

Steps

1

Open Connected Apps

Go to the Requestly desktop app and click on the Connect apps button. A popup modal will appear.

Requestly Desktop App

2

Locate Terminal Processes

In the popup modal, navigate to the Terminal processes section. Click on Setup instruction for Terminal.

Terminal process tab in requestly

3

Copy the Setup Command

You will see a command displayed in the setup instructions. Copy the command. It will look something like this:

<(curl -sS localhost:7040/tpsetup)

Note: This command might be different depending upon port availability. Checkout in Connected Apps > Terminal

Terminal proxy setup steps

4

Run the Command in Terminal

Open the terminal where you will start your Node.js server and paste the copied command. Press Enter to execute it.

If the command runs successfully, you should see a confirmation message in your terminal indicating that Requestly interception is enabled.

Executing interception setup command

https requests in axios might not show up properly in Network Traffic tab due to the way axios handles HTTPS requests. But the actual request will work properly in your code as expected.

Checkout Github Issue for more explanation and quick hack on how to apply rules on these requests

Testing Proxy

  1. Go to Network Traffic tab in Requestly Desktop App.
  1. Now Make a curl request to https://amiusing.requestly.io/ using your terminal and look for that request in the Requestly Network Interceptor.

Requestly Dashboard

Updated on