CURLOPT_CRLF.3 998 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. .\" generated by cd2nroff 0.1 from CURLOPT_CRLF.md
  2. .TH CURLOPT_CRLF 3 "2025-01-17" libcurl
  3. .SH NAME
  4. CURLOPT_CRLF \- CRLF conversion
  5. .SH SYNOPSIS
  6. .nf
  7. #include <curl/curl.h>
  8. CURLcode curl_easy_setopt(CURL *handle, CURLOPT_CRLF, long conv);
  9. .fi
  10. .SH DESCRIPTION
  11. Pass a long. If the value is set to 1 (one), libcurl converts Unix newlines to
  12. CRLF newlines on transfers. Disable this option again by setting the value to
  13. 0 (zero).
  14. This is a legacy option of questionable use.
  15. .SH DEFAULT
  16. 0
  17. .SH PROTOCOLS
  18. This functionality affects all supported protocols
  19. .SH EXAMPLE
  20. .nf
  21. int main(void)
  22. {
  23. CURL *curl = curl_easy_init();
  24. if(curl) {
  25. CURLcode ret;
  26. curl_easy_setopt(curl, CURLOPT_URL, "ftp://example.com/");
  27. curl_easy_setopt(curl, CURLOPT_CRLF, 1L);
  28. ret = curl_easy_perform(curl);
  29. curl_easy_cleanup(curl);
  30. }
  31. }
  32. .fi
  33. .SH AVAILABILITY
  34. Added in curl 7.1
  35. .SH RETURN VALUE
  36. Returns CURLE_OK
  37. .SH SEE ALSO
  38. .BR CURLOPT_CONV_FROM_NETWORK_FUNCTION (3),
  39. .BR CURLOPT_CONV_TO_NETWORK_FUNCTION (3)