Home | History | Annotate | Download | only in methods
      1 #!/usr/bin/env python
      2 import os
      3 
      4 # Always returns an empty response body
      5 # and adds in the X-Method: header with the
      6 # method that was sent to the CGI
      7 
      8 print "Status: 200 Ok"
      9 print "X-Method: %s" % os.environ['REQUEST_METHOD']
     10 print ""
     11 
     12 
     13