(libT) add an environmental variable to enable libcurl verbosity

This commit is contained in:
Charles Kerr 2008-08-22 19:14:19 +00:00
parent 82815a74d2
commit a11aac24ca
1 changed files with 1 additions and 0 deletions

View File

@ -181,6 +181,7 @@ addTask( void * vtask )
curl_easy_setopt( ch, CURLOPT_FOLLOWLOCATION, 1 );
curl_easy_setopt( ch, CURLOPT_MAXREDIRS, 5 );
curl_easy_setopt( ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
curl_easy_setopt( ch, CURLOPT_VERBOSE, getenv( "TR_CURL_VERBOSE" ) != NULL );
if( task->range )
curl_easy_setopt( ch, CURLOPT_RANGE, task->range );
else /* don't set encoding if range is sent; it messes up binary data */