/usr/bin/curl: Argument list too long

You may see the following error when you send a http request with curl.

-bash: /usr/bin/curl: Argument list too long

If it is a POST request, could try to wrap into a file.

curl -X POST -d @filename.txt https:/YOUR_URL/

Or use httpie to replace curl to send request.

pip install httpie