2015-01-02 16:12:26 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2015-06-09 16:15:02 +02:00
|
|
|
from gentokenlookup import gentokenlookup
|
|
|
|
|
2015-01-02 16:12:26 +01:00
|
|
|
HEADERS = [
|
|
|
|
':authority',
|
|
|
|
':method',
|
|
|
|
':path',
|
|
|
|
':scheme',
|
2015-01-04 15:22:39 +01:00
|
|
|
':status',
|
|
|
|
':host', # for spdy
|
2018-03-11 04:02:18 +01:00
|
|
|
':protocol',
|
2015-01-02 16:12:26 +01:00
|
|
|
'expect',
|
|
|
|
'host',
|
|
|
|
'if-modified-since',
|
2015-01-04 15:22:39 +01:00
|
|
|
"te",
|
|
|
|
"cookie",
|
|
|
|
"http2-settings",
|
|
|
|
"server",
|
|
|
|
"via",
|
2016-01-15 15:04:58 +01:00
|
|
|
"forwarded",
|
2015-01-04 15:22:39 +01:00
|
|
|
"x-forwarded-for",
|
|
|
|
"x-forwarded-proto",
|
|
|
|
"alt-svc",
|
|
|
|
"content-length",
|
|
|
|
"location",
|
2015-01-14 13:33:22 +01:00
|
|
|
"trailer",
|
2015-02-07 08:09:49 +01:00
|
|
|
"link",
|
2015-02-08 06:23:22 +01:00
|
|
|
"accept-encoding",
|
|
|
|
"accept-language",
|
|
|
|
"cache-control",
|
|
|
|
"user-agent",
|
2015-09-07 16:11:23 +02:00
|
|
|
"date",
|
2016-01-20 03:16:49 +01:00
|
|
|
"content-type",
|
2018-03-11 04:02:18 +01:00
|
|
|
"sec-websocket-accept",
|
2015-01-04 15:22:39 +01:00
|
|
|
# disallowed h1 headers
|
|
|
|
'connection',
|
2015-01-02 16:12:26 +01:00
|
|
|
'keep-alive',
|
|
|
|
'proxy-connection',
|
|
|
|
'transfer-encoding',
|
|
|
|
'upgrade'
|
|
|
|
]
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2015-06-09 16:15:02 +02:00
|
|
|
gentokenlookup(HEADERS, 'HD')
|