From what I can see, this is caused by the fact that whole contents are added to the curl command to be executed. Instead of putting the POST body on the full command, we can also store the contents ...