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/k/e/keepnote-HEAD/keepnote/notebook/connection/http.py   keepnote(Download)
                    self.send_response(httplib.OK)
                    self.send_header("content_type", "text/html")
                    self.end_headers()
 
                    self.wfile.write("<html><body>")
                self.send_response(httplib.OK)
                self.send_header("content_type", "text/xml")
                self.end_headers()
                self.wfile.write(XML_HEADER)
                self.wfile.write(plist.dumps(rootid))
                self.send_response(httplib.OK)
                self.send_header("content_type", "text/xml")
                self.end_headers()
 
                if attr.get("parentids") == [None]:
                self.send_response(httplib.OK)
                self.send_header("content_type", "application/octet-stream")
                self.end_headers()
                self.wfile.write(XML_HEADER)
                self.wfile.write(plist.dumps(files).encode("utf8"))
                self.send_response(httplib.OK)
                self.send_header("content_type", "application/octet-stream")
                self.end_headers()
                self.wfile.write(stream.read())
                stream.close()

src/b/l/bluedriving-HEAD/bluedrivingWebServer.py   bluedriving(Download)
                self.send_response(200)
                self.send_header('Content-Type',        'text/html')
                self.end_headers()
                self.wfile.write(json_to_send)
 
                self.send_response(200)
                self.send_header('Content-Type',        'text/html')
                self.end_headers()
                self.wfile.write(json_to_send)
 
                self.send_response(200)
                self.send_header('Content-Type',        'text/html')
                self.end_headers()
                self.wfile.write(json_to_send)
 
                self.send_response(200)
                self.send_header('Content-Type',        'text/html')
                self.end_headers()
                self.wfile.write(json_to_send)
            # Get alarms from a MAC  
                self.send_response(200)
                self.send_header('Content-Type',        'text/html')
                self.end_headers()
                self.wfile.write(json_to_send)
            # Add an alarm to a MAC  

src/e/m/empythoned-HEAD/cpython/Lib/SimpleXMLRPCServer.py   empythoned(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/p/l/plexnet-HEAD/third_party/generic/pypy/lib-python/2.5.2/SimpleXMLRPCServer.py   plexnet(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/p/y/pytaint-HEAD/Python-2.7.5-pytaint/Lib/SimpleXMLRPCServer.py   pytaint(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/p/y/PyCPython-HEAD/Python-2.7.1/Lib/SimpleXMLRPCServer.py   PyCPython(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/g/o/goagent-ios-HEAD/python/lib/python2.7/SimpleXMLRPCServer.py   goagent-ios(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/o/p/openvault-core-HEAD/hydra-jetty/webapps/media/WEB-INF/lib/Lib/SimpleXMLRPCServer.py   openvault-core(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/g/i/gitstack-HEAD/python/Lib/SimpleXMLRPCServer.py   gitstack(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/f/r/FreePIE-HEAD/Lib/IronPython/pylib/SimpleXMLRPCServer.py   FreePIE(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)
 

Previous  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10  Next