- 授权协议: 未知
- 开发语言: C/C++
- 操作系统: Linux
- 软件首页: http://libghttp.sourcearchive.com/
- 软件文档: http://libghttp.sourcearchive.com/
软件介绍
libghttp 是一个很好用的 http 库,这个库十分的方便使用,它能够轻松地实现同步和异步的 Http 请求。
示例代码:
#include <ghttp.h>
int main(int argc, char *argv[])
{
char *uri = "http://www.oschina.net/";
ghttp_request *request = NULL;
ghttp_status status;
char *buf;
int bytes_read;
request = ghttp_request_new();
if(ghttp_set_uri(request, uri) == -1)
exit(-1);
if(ghttp_set_type(request, ghttp_type_get) == -1)
exit(-1);
ghttp_prepare(request);
status = ghttp_process(request);
if(status == ghttp_error)
exit(-1);
/* OK, done */
printf("Status code -> %d\n", ghttp_status_code(request));
buf = ghttp_get_body(loader->request);
bytes_read = ghttp_get_body_len(loader->request);
return 0;
}
Spring in Action
Craig Walls / Manning Publications / 2011-6-29 / USD 49.99
Spring in Action, Third Edition has been completely revised to reflect the latest features, tools, practices Spring offers to java developers. It begins by introducing the core concepts of Spring and......一起来看看 《Spring in Action》 这本书的介绍吧!
