如何使用libcurl进行HTTP发布? [英] How to use libcurl for HTTP post?

查看:104
本文介绍了如何使用libcurl进行HTTP发布?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是使用libcurl的新手.我不太清楚如何将其用于HTTP POST请求以及如何检查结果.我该如何使用它?

I am new using libcurl. I am not understanding clearly how to use it for HTTP POST requests and how to check the result. How can I use it for this?

推荐答案

有关-d选项的文档,请参考手册页.您可以多次使用该命令将不同的键值对传递给服务器.一旦可行,请使用--libcurl标志查看尝试使用libcurl在应用程序中手动执行此操作时的外观.

Refer the manual page for documentation the -d option. You can use that multiple times to pass different key,value pairs to the server. Once that works, use the --libcurl flag to see what it would look like if you're trying to use libcurl to manually do this in your application.

这篇关于如何使用libcurl进行HTTP发布?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆