You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
308 B

#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "Usage: ./signup_user.sh <username> <password>"
exit 1
fi
USERNAME="$1"
PASSWORD="$2"
curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-c cookies.txt \
-d "username=${USERNAME}&password=${PASSWORD}" \
http://localhost:5000/signup