Thanks for the extra information. Most likely this is an issue with the maximum length of a command that can be run on the command line in your system. Instead of calling curl on the command line, try using a curl library to send the request directly from your programming language.