import requests
url = ('https://rshl.org/ci/')
r = requests.get("%s" % url)
test = r.status_code
print "Content-type:text/html\r\n\r\n"
print '<html>'
print '<head>'
print '<title>Hello Word First CGI Program</title>'
print '</head>'
print '<body>'
print '<h2>Status Code:%s</h2>' % test
print '</body>'
print '</html>'
Python 2.7.2 - CentOS返回错误页面
空闲返回正确的值。
有谁知道为什么会这样?