This guide explains how to configure Hoppscotch API development desktop application with Astra Proxy Service to capture HTTP traffic.
Pre-requisites
Astra Traffic Collector and Astra Proxy Service should be up and running. Please check this article to setup both of these services using astra-cli
Launch the Hoppscotch desktop application on your system
In the left vertical menu, click the gear icon (⚙) to open Settings.
In the Interceptor section:
Select “Native” as the interceptor type.
Under Native → Global Defaults:
Turn off:
Verify Host
Verify Peer
Turn on:
Proxy
Set the Proxy URL to:
localhost:8181
In the left vertical menu, click the “REST” button to switch to the REST client interface.
Enter your API request details (method, URL, headers, etc.).
Click “Send” to fire the request via the configured proxy.
Your request is traced and you will now be able to see your API endpoint in Astra dashboard. You should be able to run the following command and confirm the whether tracing was done successfully
./astra-cli proxy logs
./astra-cli collector logs