0

I have a script below. every time i run it on my Linux (CentOS Linux release 7.6.1810 (Core)), I get this error: curl: (3) Illegal characters found in URL

I installed ""Windows Subsystem for Linux" (Ubuntu) and ran the same script on it, and it was executed successfully.

Does anyone know what the reason could be?


token="SEC: xxxxxx-xxxx-xxxx-xxxx-xxxxxxx"
addurl="https://10.10.10.99/api/reference_data/sets/testset?value="

for a in $(cat test_List.csv); do
    addcontent="$(curl -X POST -k -H "$token" "$addurl$a")"
    echo "$addcontent"
done
Sean Bright
  • 118,630
  • 17
  • 138
  • 146

0 Answers0