android13/external/python/httplib2/test/304/end2end.cgi

14 lines
268 B
Python
Executable File

#!/usr/bin/env python
import os
etag = os.environ.get("HTTP_IF_NONE_MATCH", None)
if etag:
print "Status: 304 Not Modified"
else:
print "Status: 200 Ok"
print 'ETag: "123456779"'
print "Content-Type: text/html"
print ""
print "<html></html>"