Archived
1
0
Fork 0

Initial commit

This commit is contained in:
Henrik Hautakoski 2011-06-08 18:46:58 +02:00
commit b2df740514
19 changed files with 1640 additions and 0 deletions

20
http.h Normal file
View file

@ -0,0 +1,20 @@
#ifndef HTTP_H
#define HTTP_H
#include <stddef.h>
struct http_data {
void *block;
size_t len;
};
struct http_data* http_fetch_page(const char *url);
int http_download_page(const char *url, const char *file);
int http_download_file(const char *url, const char *dir);
void http_free(struct http_data *data);
#endif