#!/usr/bin/env bash # author: Daniel Sommer # license: MIT set -e dir="$(dirname $(realpath "$0"))" . "$dir/config.env" url="$(""$dir"/url.sh" "/bypass" "$1")" printf "> sending POST request to \'$url\'...${FONT_BOLD}" [ "$(curl -X POST -s -f -w "\n%{http_code}" "$url" | tail -n1)" -ne 200 ] && printf " error!\n" || printf " done!\n"