Quantcast
Channel: https – Gea-Suan Lin's BLOG
Viewing all articles
Browse latest Browse all 267

curl 將支援 DNS over HTTPS

$
0
0

curl 的維護者 Daniel Stenberg 在他的 blog 上宣佈 curl 將會支援 DNS over HTTPS:「DoH in curl」。

從給的範例可以看出來就是多一個 CURLOPT_DOH_URL 可以設,對於要用的人很簡單:

curl = curl_easy_init();
curl_easy_setopt(curl, CURLOPT_URL,
                 "https://curl.haxx.se/");
curl_easy_setopt(curl, CURLOPT_DOH_URL,
                 "https://doh.example.com/");
res = curl_easy_perform(curl);

Viewing all articles
Browse latest Browse all 267

Latest Images

Trending Articles