curl -e http://localhost:5173 https://api.example.com

Category: Web App Development

curl -e http://localhost:5173 https://api.example.com

Send a Referer header to simulate navigation

Sets the Referer header to your dev server origin, mimicking a browser that navigated from the frontend. APIs that validate Referer for CSRF protection or analytics behave as they would for real users. The -e flag stands for referer.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.