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