1CURLOPT_CRLF(3)            curl_easy_setopt options            CURLOPT_CRLF(3)
2
3
4

NAME

6       CURLOPT_CRLF - CRLF conversion
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURLcode curl_easy_setopt(CURL *handle, CURLOPT_CRLF, long conv);
12

DESCRIPTION

14       Pass a long. If the value is set to 1 (one), libcurl converts Unix new‐
15       lines to CRLF newlines on transfers. Disable this option again by  set‐
16       ting the value to 0 (zero).
17
18       This is a legacy option of questionable use.
19

DEFAULT

21       0
22

PROTOCOLS

24       All
25

EXAMPLE

27       CURL *curl = curl_easy_init();
28       if(curl) {
29         CURLcode ret;
30         curl_easy_setopt(curl, CURLOPT_URL, "ftp://example.com/");
31         curl_easy_setopt(curl, CURLOPT_CRLF, 1L);
32         ret = curl_easy_perform(curl);
33         curl_easy_cleanup(curl);
34       }
35

AVAILABILITY

37       SMTP since 7.40.0, other protocols since they were introduced
38

RETURN VALUE

40       Returns CURLE_OK
41

SEE ALSO

43       CURLOPT_CONV_FROM_NETWORK_FUNCTION(3),    CURLOPT_CONV_TO_NETWORK_FUNC‐
44       TION(3),
45
46
47
48libcurl 8.0.1                  January 02, 2023                CURLOPT_CRLF(3)
Impressum