int http_getpage(const char *url, char *databuf, int max_len); int http_getpage_async(const char *url, char *databuf, int max_len, int *timestamp); #define HTTP_INVALIDURL -1 #define HTTP_DOMAINNOTFOUND -2 #define HTTP_CONNECTFAILED -3 #define HTTP_STATUSFAIL -4 #define HTTP_ASYNCWAIT -20 #define HTTP_RATELIMIT -21