Turn Captured Traffic into a Shareable cURL Command
Scenario
You found the exact request that reproduces a bug and now you need to hand it to a teammate, paste it into a GitHub issue, or run it again yourself from a terminal — without manually reconstructing the URL, headers, and body by hand.
Steps
Start the proxy and open the Web UI:
laurel-proxy startThe Web UI is served on port 8081 by default — open http://127.0.0.1:8081 in your browser.
Reproduce the request (or find it if it was already captured), then click it in the request list to open the request detail panel.
In the detail panel header, click the cURL button next to the Repeater button.
This copies a complete, ready-to-run curl command to your clipboard — method, headers (proxy-internal headers like Connection and Transfer-Encoding are stripped), body, and URL — and the button briefly shows Copied! to confirm.
Example of what gets copied:
curl -X POST \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer sk_live_...' \
-d '{"amount": 4200, "currency": "usd"}' \
https://api.example.com/v1/chargesPaste it directly into a Slack message, a GitHub issue, or your terminal to re-run the exact request.
With Your AI Agent
The AI Agent Plugin works from the terminal rather than the Web UI, so instead of clicking the cURL button yourself, ask your agent to look up the request and build the command from the captured data:
You: "Give me a curl command for the failing charge request"
Your agent queries: laurel-proxy request req_9c21ab4f --format agent
The agent reads the method, headers, and body from the captured
request and writes out an equivalent curl command for you to copy.This is useful when you want the command written into a bug report or test file directly, rather than just sitting on your clipboard.
Related
- Web UI - Visual interface for inspecting captured traffic
- CLI Reference - All commands, flags, and output formats
- Debug a Failing Webhook - Inspect webhook traffic from Stripe or Twilio
- AI Agent Plugin - AI-assisted HTTP debugging in your terminal