Follow redirects and pass username to keldersay/listen

This commit is contained in:
Felix Van der Jeugt 2020-01-20 14:11:42 +01:00
parent 8a51c7df9e
commit 610f42ba10
No known key found for this signature in database
GPG Key ID: 58B209295023754D
2 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
#!/bin/sh
curl -s kelder.zeus.ugent.be/messages/ | w3m -dump -T text/html
curl -sL https://kelder.zeus.ugent.be/messages/ | w3m -dump -T text/html

View File

@ -1,2 +1,2 @@
#!/bin/sh
curl -s --header "Content-Type: text/plain" -d "$*" kelder.zeus.ugent.be/messages/ --output /dev/null
curl -s --header "Content-Type: text/plain" --header "X-Username: $(users)" -d "$*" https://kelder.zeus.ugent.be/messages/