Skip to main content

Send a captured request again with one cURL

Buggregator gives every captured HTTP request a copy as cURL button: the URL, headers and body written as one curl command. Paste it in a terminal and the same request arrives again. You do not need the original sender to trigger the webhook or callback again.

Steps

1. Capture the request

Send the request to Buggregator with http-dump as the URL user name. Point a webhook, a callback or your own client at it. In Docker Compose, replace 127.0.0.1 with the Buggregator service name, for example buggregator.

bash
curl 'http://http-dump@127.0.0.1:8000/any/path?foo=bar'

2. Or mark it with a header

When the client cannot change the URL user name, add the X-Buggregator-Event header instead.

bash
curl 'http://127.0.0.1:8000/any/path?foo=bar' \
  --header 'X-Buggregator-Event: http-dump'

3. Copy the cURL command

Open http://127.0.0.1:8000 and open the request. Next to the method, URI, headers, cookies, form data and files, you find the cURL command with a copy button.

4. Paste it in a terminal

The copied command targets Buggregator, so running it as is captures the same request again. To replay it into your own handler, change the URL in the command to your app's address first. Uploaded files are named in the command, not attached.

Why it works

Buggregator stores the whole request it received, then writes it back out as a curl command. Running that command sends the same method, URL, headers and body again. Uploaded files are the one part it does not carry.

Checked on with Buggregator v2.8.0

Setup in 60 seconds

No registration. No account. Start it and point your app at it.

1

Start Buggregator

One file, installed with one command. The web UI opens on port 8000. Prefer containers? Use the Docker tab.

$ curl -fsSL https://raw.githubusercontent.com/buggregator/server/master/scripts/install.sh | sh
$ HTTP_ADDR=127.0.0.1:8000 \
  SMTP_ADDR=127.0.0.1:1025 \
  VAR_DUMPER_ADDR=127.0.0.1:9912 \
  MONOLOG_ADDR=127.0.0.1:9913 \
  PROXY_ADDR=127.0.0.1:8080 \
  ~/.local/bin/buggregator

The script picks the file for your CPU: Intel/AMD or ARM.

One file for Linux, macOS and Windows, about 40 MB. Nothing else to install.

This run line keeps it on this computer. Without the *_ADDR settings it listens on all network interfaces →

Rather not run a script? Download the file yourself →

Runs on Windows, macOS and Linux, on Intel/AMD and ARM.

Prefer not to do it yourself? Your AI agent can set Buggregator up for you →