求助 利用curl实现form表单提交 带文件上传

酒劍仙采葡萄 2014-04-18 03:05:34
curl模拟http表单提交
形如
<html>
<body>
<form action="http://exampleurl/" method="post" enctype="multipart/form-data">
<input type="text" name="usrId" value="usrId" id="usrId"/>
<input type="file" name="file" />
<input name="submit" type="submit" id="submit"/>
</form>
</body>
</html>

求具体的libcurl的c++实现
注意带文件上传
...全文
156 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
路人乙2019 2014-04-18
  • 打赏
  • 举报
回复
文件传输过程也要写?很难。最好参考成熟案例。
oldmanzhao 2014-04-18
  • 打赏
  • 举报
回复
可以参考射手播放器获取字幕的代码,里面的参数就是用curl post上去的。

3,055

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC HTML/XML
社区管理员
  • HTML/XML社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧