-
Notifications
You must be signed in to change notification settings - Fork 23
[Web service] request logger
Hosted by laitos web server, the endpoint starts/stops recording of all incoming HTTP requests and presents recorded requests for inspection.
This often comes in handy for web developers developing new web hooks (aka "web callbacks") who may wish to record and inspect incoming web hook requests.
Under the JSON key HTTPHandlers
, add a string property called
LatestRequestsInspectorEndpoint
, value being the URL location of the service.
Keep the location a secret to yourself and make it difficult to guess. Here is an example:
{ ... "HTTPHandlers": { ... "LatestRequestsInspectorEndpoint": "/my-request-recorder", ... }, ... }
The service is hosted by web server, therefore remember to run web server.
Use an HTTP client (browser application, command line tool, programming library, etc) to send an HTTP request to the endpoint.
To start recording incoming requests, visit the endpoint in a web browser (or
use a command-line HTTP client) with a query parameter ?e=1
, for example
https://laitos-server.example.com/my-request-recorder?e=1
.
The web server (both httpd
and insecurehttpd
) will then start recording all
incoming requests - including the client IP, HTTP request headers, and HTTP
request body.
To inspect recorded requests, visit the endpoint without any query parameters
(https://laitos-server.example.com/my-request-recorder
).
To stop recording requests, visit the endpoint with a query parameter ?e=0
(https://laitos-server.example.com/my-request-recorder?e=0
).
- Make the endpoint difficult to guess, this helps to prevent misuse of the service.
- The recorder will memorise up to 200 requests. Upon reaching the limit the oldest recorded requests will be automatically forgotten to make room for new incoming requests.
Table of Contents
- Home
- Get started
- Component list
- Tips for running on public cloud
- Tips for using apps over satellite
- laitos terminal
Daemon Components
- DNS server
- Mail server
- Web server
- Web proxy server
- Telnet server
- Telegram chat-bot
- Simple IP services server
- SNMP server
- System maintenance
- Phone home telemetry
Web Service Components
- Twilio telephone/SMS hook
- Microsoft chat bot hook
- The Things Network LORA tracker integration
- Recurring commands
- App command form
- Simple app command execution API
- GitLab browser
- Temporary file storage
- Simple web proxy
- Desktop on a page (virtual machine)
- Read telemetry records
- Program health report
- System process explorer
- Prometheus metrics exporter
- HTTP request inspector
- HTTP request logger
Apps