http_t定义了http协议需要的信息。
- int http_connect( http_t *conn, int proto, char *proxy, char *host, int port, char *user, char *pass );
- void http_disconnect( http_t *conn );
- void http_get( http_t *conn, char *lurl );
并且设置HTTP头中的range字段
- void http_addheader( http_t *conn, char *format, ... );
- int http_exec( http_t *conn );
- char *http_header( http_t *conn, char *header );
- long long int http_size( http_t *conn );
- void http_encode( char *s );
- void http_decode( char *s );