feat: add DoT

This commit is contained in:
源文雨
2024-04-15 17:10:06 +09:00
parent 9cf8968a82
commit 43281f26fe
9 changed files with 325 additions and 60 deletions

View File

@@ -3,6 +3,11 @@
#include "libcomandy.h"
int main() {
char* msg = request("{}");
puts(msg);
puts(request("{\"method\":\"GET\","
"\"url\":\"https://i.pximg.net/img-master/img/2012/04/04/21/24/46/26339586_p0_master1200.jpg\","
"\"headers\":{"
"\"Referer\":\"https://www.pixiv.net/\","
"\"User-Agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 Edg/123.0.0.0\""
"}"
"}"));
}