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/c/a/canape-HEAD/CANAPE.Scripting/Lib/SimpleXMLRPCServer.py   canape(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/e/y/EyeFiServer-HEAD/Release 2.0/EyeFiServer.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)

src/p/y/pyqi-0.3.1/pyqi/core/interfaces/html/__init__.py   pyqi(Download)
                self.send_response(200)
                self.send_header('Content-type', 'text/html')
                self.end_headers()
                output_writer(self.wfile.write)
 
                self.send_response(200)
                self.send_header('Content-type', 'text/html')
                self.end_headers()
                cmd_obj.command_page_writer(self.wfile.write, [], {})
 
                    self.send_response(400)
                    self.send_header('Content-type', 'text/html')
                    self.end_headers()
                    cmd_obj.command_page_writer(self.wfile.write, result['errors'], postvars)
 
                elif result['type'] == 'page':       
                    self.send_response(200)
                    self.send_header('Content-type', result['mime_type'])
                    self.end_headers()
                    self.send_header('Content-type', 'application/octet-stream')
                    self.send_header('Content-disposition', 'attachment; filename='+result['filename'])
                    self.end_headers()
                    self.wfile.write(result['contents'])
 

src/m/o/modelr-0.4.1/modelr/web/server.py   modelr(Download)
        self.send_response(200)
        self.send_header('Content-type', 'text/html')
        self.end_headers()
        self.wfile.write("Shutting down...")
 
        self.send_header('Access-Control-Allow-Headers', 'X-Request, X-Requested-With')
        self.send_header('Content-Length', '0')
        self.end_headers()
 
 
                if namespace is None:
                    self.send_response(400)
                    self.end_headers()
 
                self.send_response(200)
                self.send_header('Access-Control-Allow-Origin', '*')
                self.send_header('Access-Control-Allow-Headers',
                                 'X-Request, X-Requested-With')
                self.send_header('Content-type', 'application/json')
                self.end_headers()
                                 'X-Request, X-Requested-With')
                self.send_header('Content-type', 'application/json')
                self.end_headers()
 
                all_scripts = self.get_available_scripts()

src/g/h/GhettoRSS-HEAD/ghettorss-server.py   GhettoRSS(Download)
            self.send_response(200)
            self.send_header("Content-type", "text/html")
            self.end_headers()
            self.wfile.write(open(ROOT_PAGE).read())
            return
                self.send_response(404)
                self.send_header("Content-type", "text/html")
                self.end_headers()
                self.wfile.write("Invalid post ID")
                return
                self.send_response(404)
                self.send_header("Content-type", "text/html")
                self.end_headers()
                self.wfile.write("Invalid post number")
                return
            post = rows[0]
            self.send_response(200)
            self.send_header("Content-type", "text/html")
            self.end_headers()
                self.send_response(404)
                self.send_header("Content-type", "text/html")
                self.end_headers()
                self.wfile.write("Invalid file ID (%s)" % (file_id))
                return

src/m/i/MissionPlanner-HEAD/Lib/SimpleXMLRPCServer.py   MissionPlanner(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/m/o/modelr-HEAD/modelr/web/server.py   modelr(Download)
        self.send_response(200)
        self.send_header('Content-type', 'text/html')
        self.end_headers()
        self.wfile.write("Shutting down...")
 
        self.send_header('Access-Control-Allow-Headers', 'X-Request, X-Requested-With')
        self.send_header('Content-Length', '0')
        self.end_headers()
 
 
                if namespace is None:
                    self.send_response(400)
                    self.end_headers()
 
                self.send_response(200)
                self.send_header('Access-Control-Allow-Origin', '*')
                self.send_header('Access-Control-Allow-Headers',
                                 'X-Request, X-Requested-With')
                self.send_header('Content-type', 'application/json')
                self.end_headers()
                                 'X-Request, X-Requested-With')
                self.send_header('Content-type', 'application/json')
                self.end_headers()
 
                script_type = parameters.pop('type', None)

src/s/l/SleekPubsub-HEAD/sleekpubsub/httpd.py   SleekPubsub(Download)
				self.send_header("Content-Length", len(result))
				self.send_header("Cache-Control", "no-cache")
				self.end_headers()
				if sys.version_info < (3,0):
					self.wfile.write(result)
		self.send_header('Location', redirect)
		self.send_header("Content-Length", len(msg))
		self.end_headers()
		self.wfile.write(btyes(msg, 'utf8'))
 
		self.send_header("Content-type", "text/html")
		self.send_header("Content-Length", len(msg))
		self.end_headers()
		if sys.version_info < (3,0):
			self.wfile.write(msg)

src/b/l/blue-HEAD/jython/release/pythonLib/standard/SimpleXMLRPCServer.py   blue(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/m/o/ModreX-HEAD/ModularRex/ScriptEngines/Lib/SimpleXMLRPCServer.py   ModreX(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

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