【问题标题】:Send HTTP GET or POST request using C in WIndows在 Windows 中使用 C 发送 HTTP GET 或 POST 请求
【发布时间】:2023-04-02 18:55:01
【问题描述】:

我想在 Windows 中使用 C 发送 HTTP GET 或 POST 请求。我正在使用 Dev C++ 编译代码。我不知道使用什么库或使用什么来让它工作。

我的 HTTP GET 请求将是这样的:http://example.com/search.php?s=coffee

【问题讨论】:

标签: c http http-post http-get


【解决方案1】:

Windows sock API 2 与Berkeley sockets 兼容(或几乎)。可以使用socket()write()send() 等功能。这并不难。但是你仍然可以使用诸如curl之类的库

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-03-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-06-14
    相关资源
    最近更新 更多