[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,
payload_b64);
wget_iri_t *iri = wget_iri_parse(url, "utf-8");
...
wget_free(url);
```
--
Reply to this email directly or view it on GitLab:
https://gitlab.com/gnuwget/wget2/issues/378#note_87790435
You're receiving this email because of your account on gitlab.com.
- Re: [Wget-dev] wget2 | GSoC'18: Support DNS over HTTPS - Discussions (#378), Aniketh Girish, 2018/07/08
- Re: [Wget-dev] wget2 | GSoC'18: Support DNS over HTTPS - Discussions (#378), Tim Rühsen, 2018/07/08
- Re: [Wget-dev] wget2 | GSoC'18: Support DNS over HTTPS - Discussions (#378), Aniketh Girish, 2018/07/08
- Re: [Wget-dev] wget2 | GSoC'18: Support DNS over HTTPS - Discussions (#378), Tim Rühsen, 2018/07/09
- Re: [Wget-dev] wget2 | GSoC'18: Support DNS over HTTPS - Discussions (#378), Aniketh Girish, 2018/07/11
- Re: [Wget-dev] wget2 | GSoC'18: Support DNS over HTTPS - Discussions (#378), Tim Rühsen, 2018/07/11
- Re: [Wget-dev] wget2 | GSoC'18: Support DNS over HTTPS - Discussions (#378), Aniketh Girish, 2018/07/13
- Re: [Wget-dev] wget2 | GSoC'18: Support DNS over HTTPS - Discussions (#378),
Tim Rühsen <=
- Re: [Wget-dev] wget2 | GSoC'18: Support DNS over HTTPS - Discussions (#378), Aniketh Girish, 2018/07/13
- Re: [Wget-dev] wget2 | GSoC'18: Support DNS over HTTPS - Discussions (#378), Tim Rühsen, 2018/07/13
- Re: [Wget-dev] wget2 | GSoC'18: Support DNS over HTTPS - Discussions (#378), Ander Juaristi, 2018/07/16