The R Project SVN R

Rev

Rev 88391 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 88391 Rev 88394
Line 404... Line 404...
404
    /* libcurl (at least 7.40.0) does not respect CURLOPT_NOBODY
404
    /* libcurl (at least 7.40.0) does not respect CURLOPT_NOBODY
405
       for some ftp header info (Content-Length and Accept-ranges). */
405
       for some ftp header info (Content-Length and Accept-ranges). */
406
    curl_easy_setopt(hnd, CURLOPT_WRITEFUNCTION, &rcvBody);
406
    curl_easy_setopt(hnd, CURLOPT_WRITEFUNCTION, &rcvBody);
407
    curlCommon(hnd, redirect, verify);
407
    curlCommon(hnd, redirect, verify);
408
    if (timeout > 0) {
408
    if (timeout > 0) {
409
	curl_easy_setopt(hnd, CURLOPT_TIMEOUT, timeout);
409
	curl_easy_setopt(hnd, CURLOPT_TIMEOUT, (long)timeout);
410
	current_timeout = timeout;
410
	current_timeout = timeout;
411
    }
411
    }
412
    if (!streql(TLS, "")) {
412
    if (!streql(TLS, "")) {
413
	// 7.34.0 was released 2013-12-17
413
	// 7.34.0 was released 2013-12-17
414
#if LIBCURL_VERSION_MAJOR > 7 || (LIBCURL_VERSION_MAJOR == 7 && LIBCURL_VERSION_MINOR >= 34)
414
#if LIBCURL_VERSION_MAJOR > 7 || (LIBCURL_VERSION_MAJOR == 7 && LIBCURL_VERSION_MINOR >= 34)