summaryrefslogtreecommitdiff
path: root/test/reflector/reflector.cgi
blob: 10c24a5f15877237d1fe1108c300a04641690a1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python
import os

# Always returns an empty response body
# and adds in the X-Method: header with the
# method that was sent to the CGI

print "Status: 200 Ok"
print "Content-type: text/plain"
print 'ETag: "alsjflaksjfasj"'
print ""
print "\n".join(["%s=%s" % (key, value) for key, value in  os.environ.iteritems()])