CURLOPT_SSL_FALSESTART.3 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. .\" generated by cd2nroff 0.1 from CURLOPT_SSL_FALSESTART.md
  2. .TH CURLOPT_SSL_FALSESTART 3 "2025-01-17" libcurl
  3. .SH NAME
  4. CURLOPT_SSL_FALSESTART \- TLS false start
  5. .SH SYNOPSIS
  6. .nf
  7. #include <curl/curl.h>
  8. CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SSL_FALSESTART, long enable);
  9. .fi
  10. .SH DESCRIPTION
  11. Pass a long as parameter set to 1L to enable or 0 to disable.
  12. This option determines whether libcurl should use false start during the TLS
  13. handshake. False start is a mode where a TLS client starts sending application
  14. data before verifying the server\(aqs Finished message, thus saving a round trip
  15. when performing a full handshake.
  16. .SH DEFAULT
  17. 0
  18. .SH PROTOCOLS
  19. This functionality affects all TLS based protocols: HTTPS, FTPS, IMAPS, POP3S, SMTPS etc.
  20. This option works only with the following TLS backends:
  21. Secure Transport
  22. .SH EXAMPLE
  23. .nf
  24. int main(void)
  25. {
  26. CURL *curl = curl_easy_init();
  27. if(curl) {
  28. curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
  29. curl_easy_setopt(curl, CURLOPT_SSL_FALSESTART, 1L);
  30. curl_easy_perform(curl);
  31. }
  32. }
  33. .fi
  34. .SH AVAILABILITY
  35. Added in curl 7.42.0
  36. .SH RETURN VALUE
  37. Returns CURLE_OK if false start is supported by the SSL backend, otherwise
  38. returns CURLE_NOT_BUILT_IN.
  39. .SH SEE ALSO
  40. .BR CURLOPT_TCP_FASTOPEN (3)