Webhook
An outside service sends a request to your public address. tunl.surf forwards the request to the local application and writes a copy to the inspector. You can send the same body again without waiting for the provider to retry.
Steps
-
Open the tunnel
tunl http 3000 --name demo--namefixes the address. You do not give the provider a new address every time. The name rules are on the how it works page. -
Give the public address to the provider
Save the
http://address from the output as the webhook target. If the HTTP endpoint is 8080, the address port is 8080 too. If the provider expects 80 or 443, you have to open the server on those ports. The HTTPS page covers that. -
Receive one delivery
Send a test request from the provider, or call the same path with
curlfrom your own machine. The request shows up in the panel. -
Read the body
The tabs on the right are Summary, Headers, Raw, and Binary. Well-formed XML is indented. JSON stays as text.
-
Replay it
Replay sends the method, headers, and body to the local endpoint again. It stays in the list with a
replaytag. A second request does not go to the provider. The request goes to your application. -
Edit it if you need to
Edit and replay changes the method, path, query, headers, and body, then sends that. Replay is refused if the path contains a space, a line break,
?,#, or a backslash. A space, a tab, a line break, or#in the query is refused too. A line break in a header name or value is also refused.The body in the edit box is the body kept on record. XML may be shown split across lines, but the signature is checked against the original bytes.
Signature check and re-signing
To reject a request whose provider signature does not match, pass --verify-webhook github:secret, slack:secret, stripe:secret, or generic hmac-sha256:Header:secret (accepts raw hex, sha256= hex, and Base64 signatures such as Shopify or Linear). A request that does not match becomes 403 and does not reach the local endpoint. The detail is on the edge rules page.
When a tunnel configures --verify-webhook, the Inspector unlocks Re-sign & replay and an automatic re-sign checkbox inside the Edit form. Re-signing recomputes fresh HMAC signatures (and fresh timestamps for Slack and Stripe) against the replayed body so your local app's own signature check passes even after you edit the payload or after the replay window expires.
Body limit
The inspector keeps the first 64 KB of the body. The rest is cut. A cut body cannot be replayed without editing it. The real request the agent forwards to the application is independent of this cut. The limit is only on the record.
Hidden values
Authorization and cookies appear as *** in the panel and are not written to disk. Replay uses what is in the server's memory and does not print it; if the server has restarted, those headers are not sent. The body and the query line are kept as they are: detail.