(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 = BaseHTTPRequestHandler.responses[code]

        response = http.server.DEFAULT_ERROR_MESSAGE % \
            {
             'code' : code,
             'message' : message,
             'explain' : explain
            }
        response = response.encode('utf-8')
        print('Status: %d %s' % (code, message))
        print('Content-Type: %s' % http.server.DEFAULT_ERROR_CONTENT_TYPE)
        print('Content-Length: %d' % len(response))
        print()
        sys.stdout.flush()
        sys.stdout.buffer.write(response)
        sys.stdout.buffer.flush()
def handle_get ( self ) : code = 400 message , explain = BaseHTTPRequestHandler . responses [ code ] response = http . server . DEFAULT_ERROR_MESSAGE % { 'code' : code , 'message' : message , 'explain' : explain } response = response . encode ( 'utf-8' ) print ( 'Status: %d %s' % ( code , message ) ) print ( 'Content-Type: %s' % http . server . DEFAULT_ERROR_CONTENT_TYPE ) print ( 'Content-Length: %d' % len ( response ) ) print ( ) sys . stdout . flush ( ) sys . stdout . buffer . write ( response ) sys . stdout . buffer . flush ( )