C / C ++ HTTP客户端库的嵌入式项目 [英] C/C++ HTTP Client Library for Embedded Projects
问题描述
因此,我已通过网页和计算器和谷歌的网页搜索结果和拖网我所遇到极少数的C / C ++ HTTP适合资源有限的,嵌入式环境中的客户端库(例如ARM)。然而,我所遇到的非常适合于桌面级的应用等等。
So I have trawled through pages and pages of search results on StackOverflow and Google and I have come across very few C/C++ HTTP client libraries suitable for a resource-constrained, embedded environment (e.g. an ARM). I have however come across quite a few that are suitable for desktop-class applications.
从本质上讲,我是一个简单,易于使用和方便的API后,使HTTP GET,POST和HEAD要求(与验证,下载恢复和负载融为一体pression支持)。这将是理想的,如果它有一个占地面积小(即没有或极少的外部依赖),是开源的(用一个许可证)。
Essentially, I am after a simple, easy-to-use and convenient API to make HTTP GET, POST and HEAD calls (with support for authentication, download resume and payload compression). It would be ideal if it had a small footprint (i.e. no or minimal external dependencies) and is open-source (with a permissive license).
下面是什么,我已经遇到到目前为止,为什么他们不适合的清单 -
Here's a list of what I've come across so far and why they are not suitable -
- 卷曲 - 太重量级
- POCO - 太重量级
- 霓虹灯 - GPL
- qlibc - 依赖于POSIX库
- CPP-NETLIB - 依赖于Boost库
- 农奴 - 依赖于Apache的便携式运行库
- urdl - 依赖于Boost库
- HTTP客户端C API - 看好,但需要一个C ++包装
- curl - too heavyweight
- poco - too heavyweight
- neon - GPL
- qlibc - relies on POSIX libraries
- cpp-netlib - relies on Boost libraries
- serf - relies on the Apache Portable Runtime library
- urdl - relies on Boost libraries
- HTTP Client C API - promising but requires a C++ wrapper
是否有任何图书馆,在那里,我不知道的还是我最好滚动我自己的?
Are there any libraries out there that I am unaware of or am I better off rolling my own?
推荐答案
你有没有采取mbed看看HttpClient的?貌似有很多从几年前,这不是维持原来的叉。我没有用过这个...
Have you taken a look at the HTTPClient on mbed? Looks like there are lots of forks of an original from a few years ago that wasn't maintained. I haven't used this...
<一个href=\"http://mbed.org/users/WiredHome/$c$c/HTTPClient/\">http://mbed.org/users/WiredHome/$c$c/HTTPClient/
这篇关于C / C ++ HTTP客户端库的嵌入式项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!