File: end2end.cgi

package info (click to toggle)
python-httplib2 0.9.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,744 kB
  • ctags: 1,237
  • sloc: python: 5,190; makefile: 103
file content (13 lines) | stat: -rwxr-xr-x 268 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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>"