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

14 lines
268 B
Plaintext
Raw Normal View History

2024-06-22 08:45:49 -04:00
#!/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>"