https://github.com/nopp/duplicate-request
Receive POST and duplicate this POST to others environments
https://github.com/nopp/duplicate-request
Last synced: over 1 year ago
JSON representation
Receive POST and duplicate this POST to others environments
- Host: GitHub
- URL: https://github.com/nopp/duplicate-request
- Owner: nopp
- Created: 2024-07-09T20:39:02.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-11T00:37:15.000Z (almost 2 years ago)
- Last Synced: 2024-07-12T01:49:49.732Z (almost 2 years ago)
- Language: Go
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# duplicate-request
Receive POST and duplicate this POST to others environments
# Start app-test
$ cd app-test
$ go run main.go
# Start main app
$ cd ..
$ export ENVIRONMENTS="http://localhost:8181/testepostA;http://localhost:8181/testepostB"
$ go run main.go
2024/07/09 17:59:42 Duplicator started
# Send test
$ curl -L -d "name=foo&content=bar" -X POST http://localhost:8080/middleware