android13/external/python/httplib2/test/user-agent/test.cgi

13 lines
262 B
Python
Executable File

#!/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 ""
print os.environ.get('HTTP_USER_AGENT', '')