My Question is similar to cUrl : Argument list too longI am sending the following command to CURL from unix shell scriptvar=$(base64 sample.pdf | perl -pe 's/\n//g')var1=$(curl -XPUT 'http://localhost:9200/my_index5/my_type/my_id?pipeline=attachment&pretty' -d' { 'data' : '$var' }')echo $var1I got error as curl: /usr/bin/curl: cannot execute [Argument list too long]Can anyone help to rewrite the above CURL code, to read the 'base64' content from a separate file instead as the argument limit is long ?
Curl - Argument list too long
curl