(self)
Handle a single HTTP GET request.

        Default implementation indicates an error because
        XML-RPC uses the POST method.
Handle a single HTTP GET request.
Handle a single HTTP GET request .
def handle_get(self):
        """Handle a single HTTP GET request.

        Default implementation indicates an error because
        XML-RPC uses the POST method.
        """

        code = 400
        message, explain = \
                 BaseHTTPServer.BaseHTTPRequestHandler.responses[code]

        response = BaseHTTPServer.DEFAULT_ERROR_MESSAGE % { #@UndefinedVariable
             'code' : code,
             'message' : message,
             'explain' : explain
            }
        sys.stdout.write('Status: %d %s\n' % (code, message))
        sys.stdout.write('Content-Type: text/html\n')
        sys.stdout.write('Content-Length: %d\n' % len(response))
        sys.stdout.write('\n')

        sys.stdout.write(response)
def handle_get ( self ) : code = 400 message , explain = BaseHTTPServer . BaseHTTPRequestHandler . responses [ code ] response = BaseHTTPServer . DEFAULT_ERROR_MESSAGE % { #@UndefinedVariable 'code' : code , 'message' : message , 'explain' : explain } sys . stdout . write ( 'Status: %d %s\n' % ( code , message ) ) sys . stdout . write ( 'Content-Type: text/html\n' ) sys . stdout . write ( 'Content-Length: %d\n' % len ( response ) ) sys . stdout . write ( '\n' ) sys . stdout . write ( response )