【问题标题】:Curl file upload issue卷曲文件上传问题
【发布时间】:2020-04-24 13:28:55
【问题描述】:

来自 Postman 的 Curl 命令不起作用。 HTTP 请求通过 Postman 工作。

curl --location --request POST 'http://localhost:8080/upload' --form 'file=@/C:/Users/documents/test.txt'

iter.hasNext() 返回 false 而不是 true。

【问题讨论】:

    标签: curl postman


    【解决方案1】:

    您似乎错过了-F 选项。 例如,请参阅this answer

    【讨论】:

    • 也不行。我相信 --form 和 -F 一样
    猜你喜欢
    • 2011-06-07
    • 2012-06-21
    • 2016-02-14
    • 2013-03-21
    • 1970-01-01
    • 1970-01-01
    • 2017-07-14
    • 2017-08-09
    相关资源
    最近更新 更多