added tool for querying requests

This commit is contained in:
alyssadev 2023-09-18 15:53:10 +10:00
parent 33c6813b87
commit 6e48bd015c
2 changed files with 20 additions and 0 deletions

3
mimeul
View file

@ -1,3 +0,0 @@
#!/bin/bash
MIME=$(file -i "$1" | cut -f1 -d" " --complement)
curl -H "Authorization: $AUTH_KEY" $DEPLOY_HOST/$2 -F "u=@$1;type=$MIME"