#NEWLINE# def handle_get( self ) : #NEWLINE# #INDENT# 'Handle a single HTTP GET request.\n\n        Default implementation indicates an error because\n        XML-RPC uses the POST method.\n        ' #NEWLINE# code = 400 #NEWLINE# ( message , explain ) = BaseHTTPRequestHandler . responses [ code ] #NEWLINE# response = ( http_server . DEFAULT_ERROR_MESSAGE % { #NEWLINE# #INDENT# 'code' : code , #NEWLINE# 'message' : message , #NEWLINE# 'explain' : explain , #NEWLINE# #UNINDENT# } ) #NEWLINE# response = response . encode ( 'utf-8' ) #NEWLINE# print ( ( 'Status: %d %s' % ( code , message ) ) ) #NEWLINE# print ( ( 'Content-Type: %s' % http_server . DEFAULT_ERROR_CONTENT_TYPE ) ) #NEWLINE# print ( ( 'Content-Length: %d' % len ( response ) ) ) #NEWLINE# print ( ) #NEWLINE# sys . stdout . flush ( ) #NEWLINE# sys . stdout . buffer . write ( response ) #NEWLINE# sys . stdout . buffer . flush ( )