Use for debugging to log received http request:
Run request logger...
$ docker run -p 8080:80 rconway/requestlogger
2020/10/31 13:29:59 Using default port = 80
2020/10/31 13:29:59 request logger running on port: 80
Submit request...
$ curl test.127.0.0.1.nip.io:8080/fred/bob?burt=larry -H "Accept: application/json" -H "Authorization: Bearer 123456789"
Host: test.127.0.0.1.nip.io:8080
URL: /fred/bob?burt=larry
Headers:
User-Agent: [curl/7.73.0]
Accept: [application/json]
Authorization: [Bearer 123456789]
Params:
burt: larry
...request logger stdout...
172.17.0.1 - - [31/Oct/2020:13:37:34 +0000] "GET /fred/bob?burt=larry HTTP/1.1" 200 183 "" "curl/7.73.0"
Specify the listening port of the request logger service (unsigned 16-bit integer).
$ docker run -e PORT=3000 -p 8080:3000 rconway/requestlogger
2020/10/31 13:43:42 Using specified port = 3000
2020/10/31 13:43:42 request logger running on port: 3000
Default port is 80
Content type
Image
Digest
Size
6.1 MB
Last updated
almost 6 years ago
docker pull rconway/requestlogger