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-fs-stack-HEAD/examples/login.py   python-fs-stack(Download)
                        self.send_response(200)
                        self.send_header('Content-type', 'text/html')
                        self.end_headers()
                        self.wfile.write(LOGIN_SUCCESS_HTML)
                        return
                except urllib2.HTTPError:
                    self.send_response(500)
                    self.send_header('Content-type', 'text/html')
                    self.end_headers()

src/p/y/pyjs-HEAD/examples/misc/flowplayer/server.py   pyjs(Download)
        self.send_header('Content-type', ctype)
        self.send_header('Last-Modified', self.date_time_string())
        self.end_headers()
        self.copyfile(f, self.wfile)
        f.close()

src/p/y/pydanny-event-notes-HEAD/Pycon2009/internet/examples/ch20/alt/myhttpd.py   pydanny-event-notes(Download)
            self.send_response(200)
            self.send_header('Content-type', 'text/html')
            self.end_headers()
            self.wfile.write(f.read())
            f.close()

src/p/y/PyCAPTCHA-HEAD/http_example.py   PyCAPTCHA(Download)
    def handle404(self):
        self.send_response(404)
        self.send_header("Content-Type", "text/html")
        self.end_headers()
        self.wfile.write("<html><body><h1>No such resource</h1></body></html>")
 
    def handleRootPage(self, testName):
        self.send_response(200)
        self.send_header("Content-Type", "text/html")
        self.end_headers()
        self.send_response(200)
        self.send_header("Content-Type", "image/jpeg")
        self.end_headers()
        test.render().save(self.wfile, "JPEG")
 
        self.send_response(200)
        self.send_header("Content-Type", "text/html")
        self.end_headers()
        self.wfile.write("""<html>
<head>

src/o/r/orphilia-dropbox-HEAD/__reference-code/dropbox-python-sdk-1.5.1/example/web_upload_app.py   orphilia-dropbox(Download)
                if len(self.cookies):
                    self.wfile.write(self.cookies.output() + '\r\n')
                self.end_headers()
                self.wfile.write(result)
 

src/o/r/orphilia-dropbox-HEAD/__reference-code/dropbox-1.4.1/example/web_upload_app.py   orphilia-dropbox(Download)
                if len(self.cookies):
                    self.wfile.write(self.cookies.output() + '\r\n')
                self.end_headers()
                self.wfile.write(result)
 

src/p/y/pydanny-event-notes-HEAD/Pycon2009/internet/examples/ch20/myhttpd.py   pydanny-event-notes(Download)
            self.send_header('Content-type',
		'text/html')
            self.end_headers()
            self.wfile.write(f.read())
            f.close()

src/p/y/python-saml-HEAD/example.py   python-saml(Download)
        self.send_header('Content-type', 'text/html')
        self.send_header('Content-Length', str(length))
        self.end_headers()
 
        shutil.copyfileobj(f, self.wfile)
        self.send_header("Pragma", "no-cache")
        self.send_header("Location", url)
        self.end_headers()
 
    def do_POST(self):

src/o/p/opencenter-agent-HEAD/opencenteragent/plugins/input/input_example.py   opencenter-agent(Download)
                self.send_response(500)
                self.send_header('Content-type', 'text/html')
                self.end_headers()
                return
 
        self.send_response(200)
        self.send_header("Content-type", "text/html")
        self.end_headers()
 
    def do_GET(self):

src/s/c/scio-HEAD/examples/proxy.py   scio(Download)
        self.send_response(200, 'OK')
        self.send_header('Content-length', str(len(status)))
        self.end_headers()
        self.wfile.write(status)
 
        self.send_response(200, 'OK')
        self.send_header('Content-length', len(str(key)))
        self.end_headers()
        self.wfile.write(str(key))
 

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