It looks like a curl globbing issue from the curl error message you included: "curl: (3) [globbing] bad range specification in column 39"
You can try turning off curl globbing with the -g param. That may not be the only issue though, as the command shown shouldn't have triggered curl globbing. Perhaps you simplified it or redacted some info before posting? -Yonik