Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1670)  |  Call(1670)  |  Derive(0)  |  Import(0)
Send the blank line ending the MIME headers.

src/p/y/python-with-braces-HEAD/Lib/SimpleXMLRPCServer.py   python-with-braces(Download)
 
            self.send_header("Content-length", "0")
            self.end_headers()
        else:
            # got a valid XML RPC response
                            pass
            self.send_header("Content-length", str(len(response)))
            self.end_headers()
            self.wfile.write(response)
 
            self.send_response(501, "encoding %r not supported" % encoding)
        self.send_header("Content-length", "0")
        self.end_headers()
 
    def report_404 (self):
        self.send_header("Content-type", "text/plain")
        self.send_header("Content-length", str(len(response)))
        self.end_headers()
        self.wfile.write(response)
 

src/r/e/restcommander-HEAD/play-1.2.4/python/Lib/SimpleXMLRPCServer.py   restcommander(Download)
                self.send_header("X-traceback", traceback.format_exc())
 
            self.end_headers()
        else:
            # got a valid XML RPC response
            self.send_response(200)
            self.send_header("Content-type", "text/xml")
            self.send_header("Content-length", str(len(response)))
            self.end_headers()
        self.send_header("Content-type", "text/plain")
        self.send_header("Content-length", str(len(response)))
        self.end_headers()
        self.wfile.write(response)
        # shut down the connection

src/e/y/eyefiserver2-HEAD/usr/local/bin/eyefiserver.py   eyefiserver2(Download)
    def do_QUIT (self):
        eyeFiLogger.debug("Got StopServer request .. stopping server")
        self.send_response(200)
        self.end_headers()
        self.server.stop()
            # I should be sending a Content-Length header with HTTP/1.1 but I am being lazy
            # self.send_header('Content-length', '123')
            self.end_headers()
            self.wfile.write(self.client_address)
            self.wfile.write(self.headers)
                self.send_header('Content-Type','text/xml; charset="utf-8"')
                self.send_header('Content-Length', contentLength)
                self.end_headers()
 
                self.wfile.write(response)
                self.send_header('Content-Type','text/xml; charset="utf-8"')
                self.send_header('Content-Length', contentLength)
                self.end_headers()
 
                self.wfile.write(response)
                self.send_header('Content-Type','text/xml; charset="utf-8"')
                self.send_header('Content-Length', contentLength)
                self.end_headers()
 
                self.wfile.write(response)

src/w/e/weblabdeusto-HEAD/server/src/weblab/comm/proxy_server.py   weblabdeusto(Download)
        def send_head_redirect(self, data, path, location):
            self.send_response(301)
            self.send_header('Location', location)
            self.end_headers()
 
                for response_header in e.hdrs:
                    self.send_header(response_header, e.hdrs[response_header])
                self.end_headers()
                return None
 
            response_headers = urlobj.info()
            self.send_response(200) # TODO
            for response_header in response_headers:
                self.send_header(response_header, response_headers[response_header])
            self.end_headers()
            self.send_header("Content-Length", str(fs[6]))
            self.send_header("Last-Modified", self.date_time_string(fs.st_mtime))
            self.end_headers()
            return f
 

src/f/i/Field-HEAD/Contents/lib/python/SimpleXMLRPCServer.py   Field(Download)
            # internal error, report as HTTP server error
            self.send_response(500)
            self.end_headers()
        else:
            # got a valid XML RPC response
            self.send_response(200)
            self.send_header("Content-type", "text/xml")
            self.send_header("Content-length", str(len(response)))
            self.end_headers()
        self.send_header("Content-type", "text/plain")
        self.send_header("Content-length", str(len(response)))
        self.end_headers()
        self.wfile.write(response)
        # shut down the connection

src/r/o/roundup-1.5.0/roundup/scripts/roundup_server.py   roundup(Download)
                self.send_response(400)
                self.send_header('Content-Type', 'text/html')
                self.end_headers()
                if self.DEBUG_MODE:
                    try:
            self.send_response(302)
            self.send_header('Location', urllib.quote(keys[0]) + '/index')
            self.end_headers()
        else:
            self.send_response(200)
 
        self.send_header('Content-Type', 'text/html')
        self.end_headers()
            self.send_response(200)
            self.send_header('Content-Type', 'image/x-icon')
            self.end_headers()
 
            # this bufsize is completely arbitrary, I picked 4K because it sounded good.
            url = '%s://%s%s/'%(protocol, self.headers['host'], self.path)
            self.send_header('Location', url)
            self.end_headers()
            self.wfile.write('Moved Permanently')
            return

src/b/a/babble-HEAD/include/jython/Lib/SimpleXMLRPCServer.py   babble(Download)
            # internal error, report as HTTP server error
            self.send_response(500)
            self.end_headers()
        else:
            # got a valid XML RPC response
            self.send_response(200)
            self.send_header("Content-type", "text/xml")
            self.send_header("Content-length", str(len(response)))
            self.end_headers()
        self.send_header("Content-type", "text/plain")
        self.send_header("Content-length", str(len(response)))
        self.end_headers()
        self.wfile.write(response)
        # shut down the connection

src/h/e/heroku-playframework-HEAD/play-1.2.2RC1/python/Lib/SimpleXMLRPCServer.py   heroku-playframework(Download)
                self.send_header("X-traceback", traceback.format_exc())
 
            self.end_headers()
        else:
            # got a valid XML RPC response
            self.send_response(200)
            self.send_header("Content-type", "text/xml")
            self.send_header("Content-length", str(len(response)))
            self.end_headers()
        self.send_header("Content-type", "text/plain")
        self.send_header("Content-length", str(len(response)))
        self.end_headers()
        self.wfile.write(response)
        # shut down the connection

src/j/f/jfinal-app-HEAD/jfgen/python/Lib/SimpleXMLRPCServer.py   jfinal-app(Download)
                self.send_header("X-traceback", traceback.format_exc())
 
            self.end_headers()
        else:
            # got a valid XML RPC response
            self.send_response(200)
            self.send_header("Content-type", "text/xml")
            self.send_header("Content-length", str(len(response)))
            self.end_headers()
        self.send_header("Content-type", "text/plain")
        self.send_header("Content-length", str(len(response)))
        self.end_headers()
        self.wfile.write(response)
        # shut down the connection

src/e/y/EyeFiServer-HEAD/Old/EyeFiServerv2.py   EyeFiServer(Download)
    # I should be sending a Content-Length header with HTTP/1.1 but I am being lazy
    # self.send_header('Content-length', '123')
    self.end_headers()
    self.wfile.write(self.client_address)
    self.wfile.write(self.headers)
      self.send_header('Content-Type','text/xml; charset="utf-8"') 
      self.send_header('Content-Length', contentLength)
      self.end_headers()
 
      self.wfile.write(response)
      self.send_header('Content-Type','text/xml; charset="utf-8"') 
      self.send_header('Content-Length', contentLength)
      self.end_headers()
 
      self.wfile.write(response)
      self.send_header('Content-Type','text/xml; charset="utf-8"') 
      self.send_header('Content-Length', contentLength)
      self.end_headers()
 
      self.wfile.write(response)
      self.send_header('Content-Length', contentLength)
      self.send_header('Connection', 'Close')      
      self.end_headers()
 
      self.wfile.write(response)

Previous  5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13  Next