2024-09-03 19:07:52 +00:00
|
|
|
char *methods = "GET\n"
|
|
|
|
"HEAD\n"
|
|
|
|
"POST\n"
|
|
|
|
"PUT\n"
|
|
|
|
"DELETE\n"
|
|
|
|
"CONNECT\n"
|
|
|
|
"OPTIONS\n"
|
|
|
|
"TRACE\n"
|
|
|
|
"PATCH\n";
|
|
|
|
|
2024-09-02 22:03:32 +00:00
|
|
|
char *headers = "A-IM\n"
|
|
|
|
"Accept\n"
|
|
|
|
"Accept-Charset\n"
|
|
|
|
"Accept-Datetime\n"
|
|
|
|
"Accept-Encoding\n"
|
|
|
|
"Accept-Language\n"
|
|
|
|
"Access-Control-Request-Method\n"
|
|
|
|
"Access-Control-Request-Headers\n"
|
|
|
|
"Authorization\n"
|
|
|
|
"Cache-Control\n"
|
|
|
|
"Connection\n"
|
|
|
|
"Content-Encoding\n"
|
|
|
|
"Content-Length\n"
|
|
|
|
"Content-MD5\n"
|
|
|
|
"Content-Type\n"
|
|
|
|
"Cookie\n"
|
|
|
|
"Date\n"
|
|
|
|
"Expect\n"
|
|
|
|
"Forwarded\n"
|
|
|
|
"From\n"
|
|
|
|
"Host\n"
|
|
|
|
"HTTP2-Settings\n"
|
|
|
|
"If-Match\n"
|
|
|
|
"If-Modified-Since\n"
|
|
|
|
"If-None-Match\n"
|
|
|
|
"If-Range\n"
|
|
|
|
"If-Unmodified-Since\n"
|
|
|
|
"Max-Forwards\n"
|
|
|
|
"Origin\n"
|
|
|
|
"Pragma\n"
|
|
|
|
"Prefer\n"
|
|
|
|
"Proxy-Authorization\n"
|
|
|
|
"Range\n"
|
|
|
|
"Referer\n"
|
|
|
|
"TE\n"
|
|
|
|
"Trailer\n"
|
|
|
|
"Transfer-Encoding\n"
|
|
|
|
"User-Agent\n"
|
|
|
|
"Upgrade\n"
|
|
|
|
"Via\n"
|
|
|
|
"Warning\n"
|
|
|
|
"Upgrade-Insecure-Requests\n"
|
|
|
|
"X-Requested-With\n"
|
|
|
|
"DNT\n"
|
|
|
|
"X-Forwarded-For\n"
|
|
|
|
"X-Forwarded-Host\n"
|
|
|
|
"X-Forwarded-Proto\n"
|
|
|
|
"Front-End-Https\n"
|
|
|
|
"X-Http-Method-Override\n"
|
|
|
|
"X-ATT-DeviceID\n"
|
|
|
|
"X-Wap-Profile\n"
|
|
|
|
"Proxy-Connection\n"
|
|
|
|
"X-UIDH\n"
|
|
|
|
"X-Csrf-Token\n"
|
|
|
|
"X-Request-ID\n"
|
|
|
|
"X-Correlation-ID\n"
|
|
|
|
"Correlation-ID\n"
|
|
|
|
"Save-Data\n"
|
|
|
|
"Sec-GPC\n"
|
|
|
|
"Accept-CH\n"
|
|
|
|
"Access-Control-Allow-Origin\n"
|
|
|
|
"Access-Control-Allow-Credentials\n"
|
|
|
|
"Access-Control-Expose-Headers\n"
|
|
|
|
"Access-Control-Max-Age\n"
|
|
|
|
"Access-Control-Allow-Methods\n"
|
|
|
|
"Access-Control-Allow-Headers\n"
|
|
|
|
"Accept-Patch\n"
|
|
|
|
"Accept-Ranges\n"
|
|
|
|
"Age\n"
|
|
|
|
"Allow\n"
|
|
|
|
"Alt-Svc\n"
|
|
|
|
"Content-Disposition\n"
|
|
|
|
"Content-Language\n"
|
|
|
|
"Content-Location\n"
|
|
|
|
"Content-Range\n"
|
|
|
|
"Delta-Base\n"
|
|
|
|
"ETag\n"
|
|
|
|
"Expires\n"
|
|
|
|
"IM\n"
|
|
|
|
"Last-Modified\n"
|
|
|
|
"Link\n"
|
|
|
|
"Location\n"
|
|
|
|
"P3P\n"
|
|
|
|
"Preference-Applied\n"
|
|
|
|
"Proxy-Authenticate\n"
|
|
|
|
"Public-Key-Pins\n"
|
|
|
|
"Retry-After\n"
|
|
|
|
"Server\n"
|
|
|
|
"Set-Cookie\n"
|
|
|
|
"Strict-Transport-Security\n"
|
|
|
|
"Tk\n"
|
|
|
|
"Vary\n"
|
|
|
|
"WWW-Authenticate\n"
|
|
|
|
"X-Frame-Options\n"
|
|
|
|
"Content-Security-Policy\n"
|
|
|
|
"Expect-CT\n"
|
|
|
|
"NEL\n"
|
|
|
|
"Permissions-Policy\n"
|
|
|
|
"Refresh\n"
|
|
|
|
"Report-To\n"
|
|
|
|
"Status\n"
|
|
|
|
"Timing-Allow-Origin\n"
|
|
|
|
"X-Content-Duration\n"
|
|
|
|
"X-Content-Type-Options\n"
|
|
|
|
"X-Powered-By\n"
|
|
|
|
"X-Redirect-By\n"
|
|
|
|
"X-UA-Compatible\n"
|
|
|
|
"X-XSS-Protection";
|