Changeset 11200 for trunk/libtransmission/web.c
- Timestamp:
- Sep 9, 2010, 6:28:20 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/web.c
r11172 r11200 153 153 CURL * e = curl_easy_init( ); 154 154 const long verbose = getenv( "TR_CURL_VERBOSE" ) != NULL; 155 char * cookie_filename = tr_buildPath( s->configDir, "cookies.txt", NULL ); 155 156 156 157 if( !task->range && s->isProxyEnabled ) { … … 170 171 171 172 curl_easy_setopt( e, CURLOPT_AUTOREFERER, 1L ); 173 curl_easy_setopt( e, CURLOPT_COOKIEFILE, cookie_filename ); 172 174 curl_easy_setopt( e, CURLOPT_ENCODING, "gzip;q=1.0, deflate, identity" ); 173 175 curl_easy_setopt( e, CURLOPT_FOLLOWLOCATION, 1L ); … … 194 196 curl_easy_setopt( e, CURLOPT_RANGE, task->range ); 195 197 198 tr_free( cookie_filename ); 196 199 return e; 197 200 }
Note: See TracChangeset
for help on using the changeset viewer.