Home | History | Annotate | Download | only in user-agent
      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 "Content-Type: text/plain"
     10 print ""
     11 print os.environ.get('HTTP_USER_AGENT', '')
     12 
     13