Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5    Statistic  

CURL.SetOptionDOHURL

Provides the DNS-over-HTTPS URL.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 8.5 Yes Yes Yes Yes Yes
MBS( "CURL.SetOptionDOHURL"; curl; Value )   More

Parameters

Parameter Description Example value
curl The CURL session handle. $curl
Value The new URL.

Result

Returns OK or error.

Description

Provides the DNS-over-HTTPS URL.
Pass in a string to a URL for the DOH server to use for name resolving. The parameter should be URL-encoded in the following format: "https://host:port/path". It MUST specify a HTTPS URL.

libcurl doesn't validate the syntax or use this variable until the transfer is issued. Even if you set a crazy value here, CURL.SetOptionDOHURL will still return OK.

curl sends POST requests to the given DNS-over-HTTPS URL.

To find the DOH server itself, which might be specified using a name, libcurl will use the default name lookup function. You can bootstrap that by providing the address for the DOH server with CURL.SetOptionResolve.

Disable DOH use again by setting this option to "".

See also DOH_URL option in CURL manual.

See also

Created 31st October 2018, last changed 31st October 2018


CURL.SetOptionDNSShuffleAddresses   -   CURL.SetOptionDefaultProtocol

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins