摘要: 一、POST传送参数 使用curl命令传送字典: curl http://192.168.1.10:5000/upload -X POST -d '{"hello": "world"}' --header "Content-Type: application /json" 使用Python Flas 阅读全文
posted @ 2022-06-18 13:04 船长博客 阅读(1461) 评论(0) 推荐(0) 编辑
摘要: 1. 使用-d参数: 语法:curl -d @filename [URL] 示例: touch a.txt curl -d @a.txt https://reqbin.com/echo/post/json 返回信息: {"success":"true"} 2. 使用-F参数 语法:curl -F f 阅读全文
posted @ 2022-06-18 11:38 船长博客 阅读(13412) 评论(2) 推荐(4) 编辑
摘要: 使用curl post上传文件: touch abc.txt curl -F "file=@abc.txt" http://192.168.1.10:5000/upload 使用python flask接收文件: from flask import Flask, request app = Flas 阅读全文
posted @ 2022-06-18 11:37 船长博客 阅读(6159) 评论(0) 推荐(0) 编辑
永远相信美好的事情即将发生!