mirror of
https://github.com/curl/curl.git
synced 2026-08-25 09:13:31 +03:00
curl: add --false-start option
This commit is contained in:
parent
185914fd31
commit
1f651d1d4d
5 changed files with 20 additions and 0 deletions
|
|
@ -207,6 +207,8 @@ struct OperationConfig {
|
|||
bool noalpn; /* enable/disable TLS ALPN extension */
|
||||
char *unix_socket_path; /* path to Unix domain socket */
|
||||
|
||||
bool falsestart;
|
||||
|
||||
struct GlobalConfig *global;
|
||||
struct OperationConfig *prev;
|
||||
struct OperationConfig *next; /* Always last in the struct */
|
||||
|
|
|
|||
|
|
@ -218,6 +218,7 @@ static const struct LongShort aliases[]= {
|
|||
{"Eo", "login-options", TRUE},
|
||||
{"Ep", "pinnedpubkey", TRUE},
|
||||
{"Eq", "cert-status", FALSE},
|
||||
{"Er", "false-start", FALSE},
|
||||
{"f", "fail", FALSE},
|
||||
{"F", "form", TRUE},
|
||||
{"Fs", "form-string", TRUE},
|
||||
|
|
@ -1368,6 +1369,10 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||
config->verifystatus = TRUE;
|
||||
break;
|
||||
|
||||
case 'r': /* --false-start */
|
||||
config->falsestart = TRUE;
|
||||
break;
|
||||
|
||||
default: /* certificate file */
|
||||
{
|
||||
char *certname, *passphrase;
|
||||
|
|
|
|||
|
|
@ -83,6 +83,7 @@ static const char *const helptext[] = {
|
|||
" --environment Write results to environment variables (RISC OS)",
|
||||
#endif
|
||||
" -f, --fail Fail silently (no output at all) on HTTP errors (H)",
|
||||
" --false-start Enable TLS False Start.",
|
||||
" -F, --form CONTENT Specify HTTP multipart POST data (H)",
|
||||
" --form-string STRING Specify HTTP multipart POST data (H)",
|
||||
" --ftp-account DATA Account data string (F)",
|
||||
|
|
|
|||
|
|
@ -1041,6 +1041,9 @@ static CURLcode operate_do(struct GlobalConfig *global,
|
|||
|
||||
if(config->verifystatus)
|
||||
my_setopt(curl, CURLOPT_SSL_VERIFYSTATUS, 1L);
|
||||
|
||||
if(config->falsestart)
|
||||
my_setopt(curl, CURLOPT_SSL_FALSESTART, 1L);
|
||||
}
|
||||
|
||||
if(built_in_protos & (CURLPROTO_SCP|CURLPROTO_SFTP)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue