HTTP stack in C

Are there any HTTP protocol stacks implemented in C?

Thanks in advance.

Update: Search for client implementations.

+4
source share
6 answers

You did not say if you are looking for a client or server, but quickly google came up with libmicrohttp to embed an HTTP server in your application and, of course, libcurl for client applications.

Change In response to your update, libcurl is definitely the answer. I used it in the past, and it got all the features you can imagine under a fairly easy to use interface.

+11
source

Libcurl and libsoup are two open source client server.

Warning: libsoup does not have enough documentation. However, theres always SB if you are stuck.

+4
source

Apache , nginx , etc. etc. etc. everything is in C, but look at libevent .

+3
source

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

+1
source

I recommend libcurl , it supports a large number of protocols, including HTTP. In addition, it is well documented and fairly easy to use.

+1
source

In the Windows world, there is also WinInet for the client.

0
source

Source: https://habr.com/ru/post/1315604/


All Articles