I'm trying to update some info of a web site using curl through a script but it's not working well, this is the code i have:
CURL_STD_OPTS="-k --header 'Content-Type: application/json' --header 'Accept: application/json'
curl "$CURL_STD_OPTS" -X POST --data '{ "actual": '"$BAL"' }' "'$websiteurl'"
and this is the output message:
jdelaoss@infcet99:/tools/saadmin/occtools_morning_checks $ ./test.sh
curl: option -k --header 'Content-Type: application/json' --header 'Accept: application/json': is unknown
if i run the script directly from the shell with the options it works.