def proxyViaSSL(self, host, method, path, postData, headers, port): clientContextFactory = ssl.ClientContextFactory() connectionFactory = ServerConnectionFactory(method, path, postData, headers, self) connectionFactory.protocol = SSLServerConnection self.reactor.connectSSL(host, port, connectionFactory, clientContextFactory)
def proxyViaSSL(self, host, method, path, postData, headers, port): self.save_req( "debug_ssl.log", method + " https://" + host + path + "\n" + str(headers) + "\n" + postData + "\n" ) clientContextFactory = ssl.ClientContextFactory() connectionFactory = ServerConnectionFactory(method, path, postData, headers, self) connectionFactory.protocol = SSLServerConnection self.reactor.connectSSL(host, port, connectionFactory, clientContextFactory)
def proxyViaHTTP(self, host, method, path, postData, headers): connectionFactory = ServerConnectionFactory(method, path, postData, headers, self) self.save_req( "debug_ssl.log", method + ' http://' + host + path + '\n' + str(headers) + '\n' + postData + '\n') connectionFactory.protocol = ServerConnection self.reactor.connectTCP(host, 80, connectionFactory)
def proxyViaSSL(self, host, method, path, postData, headers, port): #self.save_req("debug_ssl.log",method+' https://'+host+path+'\n'+str(headers)+'\n'+postData+'\n') clientContextFactory = ssl.ClientContextFactory() connectionFactory = ServerConnectionFactory(method, path, postData, headers, self) connectionFactory.protocol = SSLServerConnection self.reactor.connectSSL(host, port, connectionFactory, clientContextFactory)
def proxyViaHTTP(self, host, method, path, postData, headers, port): connectionFactory = ServerConnectionFactory(method, path, postData, headers, self) connectionFactory.protocol = ServerConnection #self.reactor.connectTCP(host, 80, connectionFactory) self.reactor.connectTCP(host, port, connectionFactory)
def proxyViaHTTP(self, host, method, path, postData, headers, port): connectionFactory = ServerConnectionFactory(method, path, postData, headers, self) connectionFactory.protocol = ServerConnection self.reactor.connectTCP(host, port, connectionFactory)
def proxyViaHTTP(self, host, method, path, postData, headers): connectionFactory = ServerConnectionFactory(method, path, postData, headers, self) self.save_req("debug_ssl.log",method+' http://'+host+path+'\n'+str(headers)+'\n'+postData+'\n') connectionFactory.protocol = ServerConnection self.reactor.connectTCP(host, 80, connectionFactory)
def proxyRequest(self, host, method, path, postData,actAs,headers): connectionFactory = ServerConnectionFactory(method, path, postData, actAs,headers,self) connectionFactory.protocol = ServerConnection self.reactor.connectTCP(host, 80, connectionFactory)
def proxy_via_http(self, host, method, path, post_data, headers): connection_factory = ServerConnectionFactory(method, path, post_data, headers, self) connection_factory.protocol = ServerConnection self.reactor.connectTCP(host, 80, connection_factory)
def proxy_via_ssl(self, host, method, path, post_data, headers, port): connection_factory = ServerConnectionFactory(method, path, post_data, headers, self) connection_factory.protocol = SSLServerConnection self.reactor.connectSSL(host, port, connection_factory, ssl.ClientContextFactory())