return 1;
}
-/* makes directory if neccessary */
-int http_download_get_url ( const char *hostname, const char *uri, FILE *f, int already_redirected, int sendhostname )
+int http_download_get_url ( const char *hostname, const char *uri, FILE *f, int already_redirected, DownloadOptions *options )
{
static char input_buffer[1024];
int sock;
}
- if ( sendhostname ) {
+ if ( options != NULL && options->sendhostname ) {
send ( sock, "GET http://", 11, 0);
send ( sock, hostname, strlen(hostname), 0 );
send ( sock, uri, strlen ( uri ), 0 );