开发者

HTTP stack in C

开发者 https://www.devze.com 2023-01-07 06:09 出处:网络
Are there any HTTP protocol开发者_开发问答 stacks implemented in C? Thanks in advance. Update: looking for client implementations.You didn\'t say whether you\'re looking for client or server, but a

Are there any HTTP protocol开发者_开发问答 stacks implemented in C?

Thanks in advance.

Update: looking for client implementations.


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.


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.


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


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


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消