comandy/build/test.c

16 lines
540 B
C
Raw Normal View History

2024-04-15 02:39:28 +09:00
#include <stdio.h>
#include "libcomandy.h"
int main() {
2024-04-16 15:27:06 +09:00
char* para = "{\"method\":\"GET\","
2024-04-15 17:10:06 +09:00
"\"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\""
"}"
2024-04-16 15:27:06 +09:00
"}";
fputs(para, stderr); fputs("\n", stderr);
puts(request(para));
2024-04-15 02:39:28 +09:00
}