comparison mupdf-source/thirdparty/curl/docs/libcurl/opts/CURLOPT_DOH_URL.3 @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 .\" **************************************************************************
2 .\" * _ _ ____ _
3 .\" * Project ___| | | | _ \| |
4 .\" * / __| | | | |_) | |
5 .\" * | (__| |_| | _ <| |___
6 .\" * \___|\___/|_| \_\_____|
7 .\" *
8 .\" * Copyright (C) 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
9 .\" *
10 .\" * This software is licensed as described in the file COPYING, which
11 .\" * you should have received as part of this distribution. The terms
12 .\" * are also available at https://curl.haxx.se/docs/copyright.html.
13 .\" *
14 .\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 .\" * copies of the Software, and permit persons to whom the Software is
16 .\" * furnished to do so, under the terms of the COPYING file.
17 .\" *
18 .\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 .\" * KIND, either express or implied.
20 .\" *
21 .\" **************************************************************************
22 .\"
23 .TH CURLOPT_DOH_URL 3 "18 Jun 2018" "libcurl 7.62.0" "curl_easy_setopt options"
24 .SH NAME
25 CURLOPT_DOH_URL \- provide the DNS-over-HTTPS URL
26 .SH SYNOPSIS
27 #include <curl/curl.h>
28
29 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_DOH_URL, char *URL);
30 .SH DESCRIPTION
31 Pass in a pointer to a \fIURL\fP for the DOH server to use for name
32 resolving. The parameter should be a char * to a zero terminated string which
33 must be URL-encoded in the following format: "https://host:port/path". It MUST
34 specify a HTTPS URL.
35
36 libcurl doesn't validate the syntax or use this variable until the transfer is
37 issued. Even if you set a crazy value here, \fIcurl_easy_setopt(3)\fP will
38 still return \fICURLE_OK\fP.
39
40 curl sends POST requests to the given DNS-over-HTTPS URL.
41
42 To find the DOH server itself, which might be specified using a name, libcurl
43 will use the default name lookup function. You can bootstrap that by providing
44 the address for the DOH server with \fICURLOPT_RESOLVE(3)\fP.
45
46 Disable DOH use again by setting this option to NULL.
47 .SH DEFAULT
48 NULL - there is no default DOH URL. If this option isn't set, libcurl will use
49 the default name resolver.
50 .SH PROTOCOLS
51 All
52 .SH EXAMPLE
53 .nf
54 CURL *curl = curl_easy_init();
55 if(curl) {
56 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
57 curl_easy_setopt(curl, CURLOPT_DOH_URL, "https://dns.example.com");
58 curl_easy_perform(curl);
59 }
60 .fi
61 .SH AVAILABILITY
62 Added in 7.62.0
63 .SH RETURN VALUE
64 Returns CURLE_OK on success or CURLE_OUT_OF_MEMORY if there was insufficient
65 heap space.
66
67 Note that \fIcurl_easy_setopt(3)\fP won't actually parse the given string so
68 given a bad DOH URL, curl will not detect a problem until it tries to resolve
69 a name with it.
70 .SH "SEE ALSO"
71 .BR CURLOPT_VERBOSE "(3), " CURLOPT_RESOLVE "(3), "