Using variables inside the curl command not working in bash script

Published --