- 授权协议: 未知
- 开发语言: 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;
}
The Apache Modules Book
Nick Kew / Prentice Hall PTR / 2007-02-05 / USD 54.99
"Do you learn best by example and experimentation? This book is ideal. Have your favorite editor and compiler ready-you'll encounter example code you'll want to try right away. You've picked the right......一起来看看 《The Apache Modules Book》 这本书的介绍吧!
