-/* TODO: convert to Glib */
-int a_http_download_get_url ( const char *hostname, const char *uri, const char *fn );
-int a_http_download_get_url_nohostname ( const char *hostname, const char *uri, const char *fn );
+
+#include <stdio.h>
+
+int http_download_get_url ( const char *hostname, const char *uri, FILE *f, int already_redirected, int sendhostname );