开发者社区> 问答> 正文

-bash: /usr/bin/curl: Argument list too long?报错

今天用curl -d 调用接口的时候报错,参数太长,有大神知道解决方案不?

接口如下:

curl -d "title=Domain name hijacking&toUsers=zhangtianyi@qiyi.com&content=`cat /home/qiyi/test`&auth=3CDD4" "http://qim.qiyi.domain/api/normal/sendEmail"

展开
收起
爱吃鱼的程序员 2020-06-14 16:24:40 2221 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    把你要post的信息写到文本里,使用curl-d@post_text.txt试试回复<aclass='referer'target='_blank'>@恋秋秋:http://unix.stackexchange.com/questions/174350/curl-argument-list-too-long我要content的参数信息是写在test文件里面的

    2020-06-14 16:24:57
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载