GNURLOPT_SSL_FALSESTART(3)

πŸ“¦ version 7.72.0, in nixos 26.05, nixpkgs unstable

πŸ’… GNURLOPT_SSL_FALSESTART(3) πŸ’…

okay bestie, welcome to the curl_easy_setopt options manual page β€” this one is all about CURLOPT_SSL_FALSESTART, aka the switch that lets you enable TLS false start. Let's go, it's giving TLS handshake energy. πŸ¦‹βœ¨


🌸 NAME 🌸

CURLOPT_SSL_FALSESTART β€” enable TLS false start πŸ’…

✨ SYNOPSIS ✨

#include <gnurl/curl.h>

CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SSL_FALSESTART, long
       enable);

πŸ’– DESCRIPTION πŸ’–

okay so you pass a long as the parameter β€” set it to 1L to enable, or 0 to disable. That's the whole vibe.

This option determines whether libcurl should use false start during the TLS handshake. False start is a mode where a TLS client will start sending application data before verifying the server's Finished message β€” the way that saves a round trip when performing a full handshake. Slay. πŸŽ€

πŸŽ€ DEFAULT πŸŽ€

Default: 0 β€” off by default, bestie. πŸ’€

🌈 PROTOCOLS 🌈

All TLS based protocols: HTTPS, FTPS, IMAPS, POP3S, SMTPS etc. πŸ’…

πŸ“ EXAMPLE πŸ“

Here's the code, literally:

CURL *curl = curl_easy_init();
if(curl) {
  curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
  curl_easy_setopt(curl, CURLOPT_SSL_FALSESTART, 1L);
  curl_easy_perform(curl);
}

πŸ’œ AVAILABILITY πŸ’œ

Added in 7.42.0. This option is currently only supported by the NSS and Secure Transport (on iOS 7.0 or later, or OS X 10.9 or later) TLS backends. 🫢

πŸ‘‘ RETURN VALUE πŸ‘‘

Returns CURLE_OK if false start is supported by the SSL backend, otherwise returns CURLE_NOT_BUILT_IN. So if your backend isn't built for it, you get CURLE_NOT_BUILT_IN β€” not a vibe, but at least it's clear. πŸ’€


okay that's the whole page, bestie. This one came from libcurl 7.41.0, dated 14 Feb 2015 β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from