STRLENGTH=$(echo -n $1 | wc -m) curl -v --location 'http://localhost:8082' \ --header 'Content-Type: application/json' \ --header "Content-Length: $STRLENGTH" \ --data "$1"