Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
外壳代码是: #!/bin/sh body="............a lot of thing................"; curl -Ss -d"${body}" "xx.xx.com"
#!/bin/sh body="............a lot of thing................"; curl -Ss -d"${body}" "xx.xx.com"
但无法通过curl运行和发送,错误为:/usr/bin/curl: Argument list too long
可能是 $body 太长了。我想知道是否有任何选项可以设置 curl 以发送更长的帖子?
将您的身体数据存储在文件中。并使用
curl -d @<filename>
如果我将它存储在一个文件中,我让它闭嘴。
curl -o fn URLETC