1CURLOPT_CRLF(3) curl_easy_setopt options CURLOPT_CRLF(3)
2
3
4
6 CURLOPT_CRLF - enable/disable CRLF conversion
7
9 #include <curl/curl.h>
10
11 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_CRLF, long conv);
12
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
21 0
22
24 All
25
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
37 SMTP since 7.40.0, other protocols since they were introduced
38
40 Returns CURLE_OK
41
43 CURLOPT_CONV_FROM_NETWORK_FUNCTION(3), CURLOPT_CONV_TO_NETWORK_FUNC‐
44 TION(3),
45
46
47
48libcurl 7.61.1 May 31, 2017 CURLOPT_CRLF(3)