The shell code is:
#!/bin/sh
body="............a lot of thing................";
curl -Ss -d"${body}" "xx.xx.com"
But it couldn't be ran and sent via curl,the error is: /usr/bin/curl: Argument list too long
It might be the $body is too long.I wonder are there any options to set curl to send longer post?
Store your body data in a file. and use
curl -d @<filename>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With