Beispiel #1
0
 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)
Beispiel #2
0
 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)
Beispiel #4
0
 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)
Beispiel #5
0
 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)
Beispiel #6
0
 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)
Beispiel #7
0
 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)
Beispiel #8
0
 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)
Beispiel #9
0
 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)
Beispiel #10
0
 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)
Beispiel #11
0
 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())