python在iis获取header

#print os.environ['QUERY_STRING']
#print os.environ['HTTP_HOST']

#print '-----------------------------------------'


print """
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title></title>
</head><body>
"""
# 调用
print(encrypt_md5('hello world'))

print os.environ['QUERY_STRING']
print os.environ['HTTP_HOST']

print '-----------------------------------------'
print '<ul>'
'''for key in os.environ.keys():
print "<li><span style='color:green'>%30s</span>:%s</li>"%(key,os.environ[key])
print '</ul>'

'''

print """
</body>
</html>
"""

原文地址:https://www.cnblogs.com/weilaibuxiangshuo/p/10388623.html