HTTP stack in C

2019-04-10 16:58发布

Are there any HTTP protocol stacks implemented in C?

Thanks in advance.

Update: looking for client implementations.

标签: c http
6条回答
We Are One
2楼-- · 2019-04-10 17:08

You didn't say whether you're looking for client or server, but a quick google turned up libmicrohttp for embedding an HTTP server in your app, and of course libcurl for client-side stuff.

Edit In answer to your update, definitely libcurl is the answer. I've used it in the past and it's got about every feature you can imagine underneath a fairly easy-to-use interface.

查看更多
萌系小妹纸
3楼-- · 2019-04-10 17:13

I recommend libcurl, it support a large number of protocols, including HTTP. Also, it's well documented, and is quite simple to use.

查看更多
祖国的老花朵
4楼-- · 2019-04-10 17:14

Apache, nginx, etc. etc. are all in C, but take a look at libevent.

查看更多
可以哭但决不认输i
5楼-- · 2019-04-10 17:23

In the Windows world, there's also WinInet for client.

查看更多
混吃等死
6楼-- · 2019-04-10 17:25

Libcurl and libsoup are two client/server side open source http stacks.

Warning : libsoup doesnt have enough documentation. However theres always SO if you get stuck.

查看更多
Ridiculous、
7楼-- · 2019-04-10 17:26

You might be interested in Serf - used by Subversion and built on top of the Apache Portable Runtime.

查看更多
登录 后发表回答