File: redirect-to-reflector.cgi

package info (click to toggle)
python-httplib2 0.9%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,728 kB
  • ctags: 1,234
  • sloc: python: 5,183; makefile: 101
file content (13 lines) | stat: -rwxr-xr-x 337 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

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

print "Status: 303 See Other"
print "Location: http://bitworking.org/projects/httplib2/test/methods/method_reflector.cgi"
print "X-Method: %s" % os.environ['REQUEST_METHOD']
print ""