27 lines
1.3 KiB
C++
27 lines
1.3 KiB
C++
#include <iostream>
|
|
#include "../IMFMessage.h"
|
|
|
|
int main(int argc, char **argv) {
|
|
|
|
coreutils::ZString buffer("Host: localhost:8080\r\n"
|
|
"Connection: keep-alive\r\n"
|
|
"Cache-Control: max-age=0\r\n"
|
|
"sec-ch-ua: \"Chromium\";v=\"92\", \" Not A;Brand\";v=\"99\", \"Google Chrome\";v=\"92\"\r\n"
|
|
"sec-ch-ua-mobile: ?0\r\n"
|
|
"Upgrade-Insecure-Requests: 1\r\n"
|
|
"User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10; rv:33.0) Gecko/20100101 Firefox/33.0\r\n"
|
|
"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\r\n"
|
|
"Sec-Fetch-Site: none\r\n"
|
|
"Sec-Fetch-Mode: navigate\r\n"
|
|
"Sec-Fetch-User: ?1\r\n"
|
|
"Sec-Fetch-Dest: document\r\n"
|
|
"Accept-Encoding: gzip, deflate, br\r\n"
|
|
"Accept-Language: en-US,en;q=0.9,fr-CA;q=0.8,fr;q=0.7\r\n"
|
|
"Cookie: _ga=GA1.1.1017526412.1628195401\r\n"
|
|
"\r\n");
|
|
|
|
coreutils::IMFMessage message(buffer);
|
|
|
|
return 0;
|
|
}
|