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-openid-2.2.5/examples/consumer.py   python-openid(Download)
            self.send_header('Content-type', 'text/html')
            self.setSessionCookie()
            self.end_headers()
            self.wfile.write(cgitb.html(sys.exc_info(), context=10))
 
                    self.send_header('Location', redirect_url)
                    self.writeUserHeader()
                    self.end_headers()
                else:
                    form_html = request.htmlMarkup(

src/r/d/rdioquiz-HEAD/python-oauth2/example/server.py   rdioquiz(Download)
                # send okay response
                self.send_response(200, 'OK')
                self.end_headers()
                # return the token
                self.wfile.write(token.to_string())
                # send okay response
                self.send_response(200, 'OK')
                self.end_headers()
                # return the callback url (to show server has it)
                self.wfile.write(token.get_callback_url())
                # send okay response
                self.send_response(200, 'OK')
                self.end_headers()
                # return the token
                self.wfile.write(token.to_string())
                # send okay response
                self.send_response(200, 'OK')
                self.end_headers()
                # return the extra parameters - just for something to return
                self.wfile.write(str(params))

src/p/y/python-openid3-2.2.6/examples/consumer.py   python-openid3(Download)
            self.send_header('Content-type', 'text/html')
            self.setSessionCookie()
            self.end_headers()
            self.wfile.write(cgitb.html(sys.exc_info(), context=10))
 
                    self.send_header('Location', redirect_url)
                    self.writeUserHeader()
                    self.end_headers()
                else:
                    form_html = request.htmlMarkup(

src/c/l/clustsrch-HEAD/oauth/example/server.py   clustsrch(Download)
                # send okay response
                self.send_response(200, 'OK')
                self.end_headers()
                # return the token
                self.wfile.write(token.to_string())
                # send okay response
                self.send_response(200, 'OK')
                self.end_headers()
                # return the callback url (to show server has it)
                self.wfile.write(token.get_callback_url())
                # send okay response
                self.send_response(200, 'OK')
                self.end_headers()
                # return the token
                self.wfile.write(token.to_string())
                # send okay response
                self.send_response(200, 'OK')
                self.end_headers()
                # return the extra parameters - just for something to return
                self.wfile.write(str(params))

src/p/y/python-openid-HEAD/examples/consumer.py   python-openid(Download)
            self.send_header('Content-type', 'text/html')
            self.setSessionCookie()
            self.end_headers()
            self.wfile.write(cgitb.html(sys.exc_info(), context=10))
 
                    self.send_header('Location', redirect_url)
                    self.writeUserHeader()
                    self.end_headers()
                else:
                    form_html = request.htmlMarkup(

src/p/y/python-fs-stack-0.2/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/python-api-wrapper-HEAD/oauth/example/server.py   python-api-wrapper(Download)
                # send okay response
                self.send_response(200, 'OK')
                self.end_headers()
                # return the token
                self.wfile.write(token.to_string())
                # send okay response
                self.send_response(200, 'OK')
                self.end_headers()
                # return the callback url (to show server has it)
                self.wfile.write('callback: %s' %callback)
                # send okay response
                self.send_response(200, 'OK')
                self.end_headers()
                # return the token
                self.wfile.write(token.to_string())
                # send okay response
                self.send_response(200, 'OK')
                self.end_headers()
                # return the extra parameters - just for something to return
                self.wfile.write(str(params))

src/o/a/oauth-reverse-proxy-HEAD/oauth/example/server.py   oauth-reverse-proxy(Download)
                # send okay response
                self.send_response(200, 'OK')
                self.end_headers()
                # return the token
                self.wfile.write(token.to_string())
                # send okay response
                self.send_response(200, 'OK')
                self.end_headers()
                # return the callback url (to show server has it)
                self.wfile.write('callback: %s' %callback)
                # send okay response
                self.send_response(200, 'OK')
                self.end_headers()
                # return the token
                self.wfile.write(token.to_string())
                # send okay response
                self.send_response(200, 'OK')
                self.end_headers()
                # return the extra parameters - just for something to return
                self.wfile.write(str(params))

src/x/m/xmpp-tdg-examples-HEAD/code/CheshiR/HTTPFrontend.py   xmpp-tdg-examples(Download)
				self.send_response(200)
				self.send_header('Content-Type', 'text/css')
				self.end_headers()
				css = open("html/cheshir.css")
				self.wfile.write(css.read())
			self.send_response(200)
			self.send_header('Content-Type', 'text/html')
			self.end_headers()
			user = self.path[1:]
			if user : 
		def do_POST(self) :
			self.send_response(200)
			self.send_header('Content-Type', 'text/html')
			self.end_headers()
			user = self.path[1:]

src/p/y/python-oauth2-HEAD/example/server.py   python-oauth2(Download)
                # send okay response
                self.send_response(200, 'OK')
                self.end_headers()
                # return the token
                self.wfile.write(token.to_string())
                # send okay response
                self.send_response(200, 'OK')
                self.end_headers()
                # return the callback url (to show server has it)
                self.wfile.write(token.get_callback_url())
                # send okay response
                self.send_response(200, 'OK')
                self.end_headers()
                # return the token
                self.wfile.write(token.to_string())
                # send okay response
                self.send_response(200, 'OK')
                self.end_headers()
                # return the extra parameters - just for something to return
                self.wfile.write(str(params))

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