echo "Hello World" | curl -H "Authorization: TOKEN" -F "file=@-" https://your-domain.tld
curl -H "Authorization: TOKEN" -F "file=@/path/to/file.txt" https://your-domain.tld
tail -n 100 /var/log/syslog | curl -H "Authorization: TOKEN" -H "expire: 1hours" -F "file=@-" https://your-domain.tld
curl -H "Authorization: TOKEN" -F "oneshot=@secret.pdf" https://your-domain.tld
curl -H "Authorization: TOKEN" -H "filename: secret.txt" -F "file=@/path/to/file.txt" https://your-domain.tld
wget --header="Authorization: TOKEN" --post-file=file.txt https://your-domain.tld
Invoke-RestMethod -Uri "https://your-domain.tld" -Method Post -Headers @{"Authorization"="TOKEN"} -InFile ".\file.txt"
$text = "My text from Windows"
$bytes = [System.Text.Encoding]::UTF8.GetBytes($text)
Invoke-RestMethod -Uri "https://your-domain.tld" -Method Post -Headers @{"Authorization"="TOKEN"} -ContentType "application/octet-stream" -Body $bytes