[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Wget-dev] wget2 | GSoC'18: Support DNS over HTTPS - Discussions (#3

From: Tim Rühsen
Subject: Re: [Wget-dev] wget2 | GSoC'18: Support DNS over HTTPS - Discussions (#378)
Date: Fri, 13 Jul 2018 08:19:50 +0000

> Further, I am using simple char array as a buffer to store the query payload. 
> Should I use the wget_buffer functions here?

IMO, use what is implemented quickly - optimizations can always be done later. 
The first goal to get it working. Something like (just typed down without 
testing !):
char payload_b64[wget_base64_get_encoded_length(payload_size)];

wget_base64_encode(payload_b64, payload, payload_size);
char *url = wget_aprintf("https://%s/dns-query?dns=%s";, doh_server, 
wget_iri_t *iri = wget_iri_parse(url, "utf-8");

Reply to this email directly or view it on GitLab: 
You're receiving this email because of your account on gitlab.com.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]