#ifndef _HTTP_H_ #define _HTTP_H_ #include #include #include #include #include #include #include #include #include "dns.h" /** * A simple structure to keep track of the size of a malloc()ated block of memory */ struct block { u32 size; u32 filesize; unsigned char *data; }; extern const struct block emptyblock; struct block downloadfile(const char *url); struct block downloadfile_noreferer(const char *url); struct block downloadfile_progress(const char *url, int size); struct block downloadfile_fname(const char *url, const char *fname); struct block downloadfile_noreferer_fname(const char *url, const char *fname); struct block downloadfile_progress_fname(const char *url, int size, const char *fname); #endif /* _HTTP_H_ */