
Veloce monitoraggio delle modifiche degli endpoint web senza configurazione
Monitor rapido e senza configurazione per rilevare cambiamenti negli endpoint web. Per confrontare le risposte, un elenco selezionato di intestazioni HTTP e il corpo completo della risposta vengono memorizzati in un file locale di archivio chiave/valore. Nessuna configurazione necessaria.
--worker permette di impostare la concorrenza durante il monitoraggio.--headersOnly quando si aggiunge un URL, si permette di monitorare solo le intestazioni della risposta.

Installa tramite Go o release binaria:
go get -u github.com/rverton/wonitor
λ $ ./wonitor
NAME:
wonitor - web monitor
USAGE:
wonitor [global options] command [command options] [arguments...]
COMMANDS:
add, a add endpoint to monitor
delete, d deletes an endpoint
get, g get endpoint body
list, l list all monitored endpoints and their body size in bytes
monitor, m retrieve all urls and compare them
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help (default: false)
λ $ ./wonitor add --url https://unlink.io/
+ https://unlink.io/
λ $ ./wonitor monitor --save
[https://unlink.io/] 1576b diff:
--- Original
+++ Current
@@ -1 +1,47 @@
+HTTP/1.1 200 OK
+Content-Type: text/html
+Server: nginx/1.10.3 (Ubuntu)
+X-Frame-Options: DENY
+<html>
+<body>
+<pre>
[... snip ...]
+</pre>
+</body>
+</html>
+
λ $ ./wonitor monitor --save
λ $ # no output because no change detected
Le seguenti intestazioni sono incluse anche nella risposta salvata e monitorate per i cambiamenti:
var headerToInclude = []string{
"Host",
"Content-Length",
"Content-Type",
"Location",
"Access-Control-Allow-Origin",
"Access-Control-Allow-Methods",
"Access-Control-Expose-Headers",
"Access-Control-Allow-Credentials",
"Allow",
"Content-Security-Policy",
"Proxy-Authenticate",
"Server",
"WWW-Authenticate",
"X-Frame-Options",
"X-Powered-By",
}