当前位置:首页 > Python教程 > python技巧

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


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐