this might have to do with the spaces in your data string.



Did you try --data-urlencode or --form for the curl?