space in curl command missing, fixed