curl/tests/libtest/lib3303.c
User 471fd5d8e0 more limited retries for security
small fix

Update docs/libcurl/symbols-in-versions

Co-authored-by: Viktor Szakats <vszakats@users.noreply.github.com>

Update lib/multi.c

Co-authored-by: Viktor Szakats <vszakats@users.noreply.github.com>

Update lib/multi.c

Co-authored-by: Viktor Szakats <vszakats@users.noreply.github.com>

removing residual?

fixing nasty include order bug

include order seems to still be an issue

Remove empty line

Co-authored-by: Viktor Szakats <vszakats@users.noreply.github.com>
2025-08-27 08:43:54 +03:00

52 lines
1.6 KiB
C

/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at https://curl.se/docs/copyright.html.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYING file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
* SPDX-License-Identifier: curl
*
***************************************************************************/
#include "first.h"
#include "memdebug.h"
/* testing the CURLALTSVC_NO_RETRY flag */
static CURLcode test_lib3303(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
long flag = CURLALTSVC_NO_RETRY |
CURLALTSVC_H1 | CURLALTSVC_H2 | CURLALTSVC_H3;
global_init(CURL_GLOBAL_ALL);
easy_init(curl);
test_setopt(curl, CURLOPT_URL, URL);
test_setopt(curl, CURLOPT_ALTSVC, "log/altsvc-TESTNUMBER");
test_setopt(curl, CURLOPT_ALTSVC_CTRL, flag);
test_setopt(curl, CURLOPT_VERBOSE, 1L);
res = curl_easy_perform(curl);
test_cleanup:
curl_easy_cleanup(curl);
curl_global_cleanup();
return res;
}