Changeset 11398 for trunk/libtransmission/web.c
- Timestamp:
- Nov 11, 2010, 3:31:11 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/web.c
r11367 r11398 145 145 CURL * e = curl_easy_init( ); 146 146 const long verbose = getenv( "TR_CURL_VERBOSE" ) != NULL; 147 char * cookie_filename = tr_buildPath( s->configDir, "cookies.txt", NULL ); 147 char * cookie_filename = tr_buildPath( s->configDir, "cookies.txt", NULL ); 148 148 149 149 curl_easy_setopt( e, CURLOPT_AUTOREFERER, 1L ); 150 curl_easy_setopt( e, CURLOPT_COOKIEFILE, cookie_filename ); 150 curl_easy_setopt( e, CURLOPT_COOKIEFILE, cookie_filename ); 151 151 curl_easy_setopt( e, CURLOPT_ENCODING, "gzip;q=1.0, deflate, identity" ); 152 152 curl_easy_setopt( e, CURLOPT_FOLLOWLOCATION, 1L ); … … 173 173 curl_easy_setopt( e, CURLOPT_RANGE, task->range ); 174 174 175 tr_free( cookie_filename ); 175 tr_free( cookie_filename ); 176 176 return e; 177 177 } … … 233 233 * On win32, any two of the parameters, readfds, writefds, or exceptfds, 234 234 * can be given as null. At least one must be non-null, and any non-null 235 * descriptor set must contain at least one handle to a socket. 235 * descriptor set must contain at least one handle to a socket. 236 236 */ 237 237 static void … … 253 253 const int e = EVUTIL_SOCKET_ERROR( ); 254 254 tr_net_strerror( errstr, sizeof( errstr ), e ); 255 dbgmsg( "Error: select (%d) %s", e, errstr ); 255 dbgmsg( "Error: select (%d) %s", e, errstr ); 256 256 } 257 257 #else
Note: See TracChangeset
for help on using the changeset viewer.