From rfrail3 at yahoo.es Mon Dec 3 04:04:22 2012 From: rfrail3 at yahoo.es (Ricardo Fraile) Date: Mon, 3 Dec 2012 09:04:22 +0000 (GMT) Subject: [Twisted-web] Disable fingerprint Message-ID: <1354525462.55102.YahooMailNeo@web133102.mail.ir2.yahoo.com> Hello, ? ? I did a nmap to my server and i watch the fingerprint, how can i disable this output? 443/tcp ?open ? ? ssl/http ? ? TwistedWeb httpd 9.0.0 Thanks, -------------- next part -------------- An HTML attachment was scrubbed... URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20121203/5d152fef/attachment.htm From geoff.metselaar at gmail.com Thu Dec 13 12:16:55 2012 From: geoff.metselaar at gmail.com (Geoff Metselaar) Date: Thu, 13 Dec 2012 17:16:55 +0000 Subject: [Twisted-web] Does twisted-web 12.01 support proxing HTTPS with ProxyAgent ? Message-ID: Hello The code suggests it does - but I can't get it to work. class ProxyAgent(_AgentBase): """ An HTTP agent able to cross HTTP proxies. @ivar _proxyEndpoint: The endpoint used to connect to the proxy. @since: 11.1 """ def __init__(self, endpoint, reactor=None, pool=None): if reactor is None: from twisted.internet import reactor _AgentBase.__init__(self, reactor, pool) self._proxyEndpoint = endpoint def request(self, method, uri, headers=None, bodyProducer=None): """ Issue a new request via the configured proxy. """ # Cache *all* connections under the same key, since we are only # connecting to a single destination, the proxy: key = ("http-proxy", self._proxyEndpoint) # To support proxying HTTPS via CONNECT, we will use key # ("http-proxy-CONNECT", scheme, host, port), and an endpoint that # wraps _proxyEndpoint with an additional callback to do the CONNECT. return self._requestWithEndpoint(key, self._proxyEndpoint, method, _parse(uri), headers, bodyProducer, uri) The "Using a http proxy" - http://twistedmatrix.com/documents/current/web/howto/client.html works, provided the target url is http ( not https as shown in the example ). I'm attempting to adapt this example to confirm https proxing is possible from twisted.python.log import err from twisted.web.client import ProxyAgent from twisted.internet import reactor from twisted.internet.endpoints import TCP4ClientEndpoint def display(response): print "Received response" print response def main(): endpoint = TCP4ClientEndpoint(reactor, "localhost", 8000) agent = ProxyAgent(endpoint) d = agent.request("GET", "https://example.com/") d.addCallbacks(display, err) d.addCallback(lambda ignored: reactor.stop()) reactor.run() if __name__ == "__main__": main() I've tried changing the endpoint to SSL4ClientEndpoint without success. Any help, much appreciated - G -------------- next part -------------- An HTML attachment was scrubbed... URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20121213/6e6ed40e/attachment.htm From levinie001 at gmail.com Sun Dec 23 23:18:18 2012 From: levinie001 at gmail.com (Levi Nie) Date: Mon, 24 Dec 2012 12:18:18 +0800 Subject: [Twisted-web] (no subject) Message-ID: ok, i'm new to twisted web. when a server.Site is inited with resource.Resource and the protocol is http.HTTPChannel. how the two(Resource and protocol) work. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20121224/7f472948/attachment.htm From exarkun at twistedmatrix.com Mon Dec 24 00:32:41 2012 From: exarkun at twistedmatrix.com (exarkun at twistedmatrix.com) Date: Mon, 24 Dec 2012 05:32:41 -0000 Subject: [Twisted-web] (no subject) In-Reply-To: References: Message-ID: <20121224053241.32066.1108359676.divmod.xquotient.5@localhost6.localdomain6> On 04:18 am, levinie001 at gmail.com wrote: >ok, i'm new to twisted web. > >when a server.Site is inited with resource.Resource and the protocol is >http.HTTPChannel. how the two(Resource and protocol) work. Hi, Congrats on getting started with Twisted Web. This question isn't easily understood or answered. "How" they work is completely and concisely defined by the source code, which you can read. I suspect this isn't really the answer you're looking for, though. Take a look at http://www.catb.org/esr/faqs/smart-questions.html and http://sscce.org/ and then please feel free to ask another question. Jean-Paul From levinie001 at gmail.com Tue Dec 25 20:40:14 2012 From: levinie001 at gmail.com (Levi Nie) Date: Wed, 26 Dec 2012 09:40:14 +0800 Subject: [Twisted-web] Twisted-web Digest, Vol 104, Issue 3 In-Reply-To: References: Message-ID: tks, i will learning twisted in depth. It's really powerful and widely used in cloud platform. 2012/12/25 > Send Twisted-web mailing list submissions to > twisted-web at twistedmatrix.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web > or, via email, send a message with subject or body 'help' to > twisted-web-request at twistedmatrix.com > > You can reach the person managing the list at > twisted-web-owner at twistedmatrix.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Twisted-web digest..." > > > Today's Topics: > > 1. (no subject) (Levi Nie) > 2. Re: (no subject) (exarkun at twistedmatrix.com) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 24 Dec 2012 12:18:18 +0800 > From: Levi Nie > Subject: [Twisted-web] (no subject) > To: twisted-web at twistedmatrix.com > Message-ID: > Trvvtg_gSrBe8EOr2DiSdkfqYgOXZ_Kd2hRRTN4Q at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > ok, i'm new to twisted web. > > when a server.Site is inited with resource.Resource and the protocol is > http.HTTPChannel. how the two(Resource and protocol) work. > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://twistedmatrix.com/pipermail/twisted-web/attachments/20121224/7f472948/attachment.html > > ------------------------------ > > Message: 2 > Date: Mon, 24 Dec 2012 05:32:41 -0000 > From: exarkun at twistedmatrix.com > Subject: Re: [Twisted-web] (no subject) > To: Twisted Web World > Message-ID: > > <20121224053241.32066.1108359676.divmod.xquotient.5 at localhost6.localdomain6 > > > > Content-Type: text/plain; charset="utf-8"; format="flowed" > > On 04:18 am, levinie001 at gmail.com wrote: > >ok, i'm new to twisted web. > > > >when a server.Site is inited with resource.Resource and the protocol is > >http.HTTPChannel. how the two(Resource and protocol) work. > > Hi, > > Congrats on getting started with Twisted Web. > > This question isn't easily understood or answered. "How" they work is > completely and concisely defined by the source code, which you can read. > I suspect this isn't really the answer you're looking for, though. > > Take a look at http://www.catb.org/esr/faqs/smart-questions.html and > http://sscce.org/ and then please feel free to ask another question. > > Jean-Paul > > > > ------------------------------ > > _______________________________________________ > Twisted-web mailing list > Twisted-web at twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web > > > End of Twisted-web Digest, Vol 104, Issue 3 > ******************************************* > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20121226/2b9897f2/attachment.htm From therve at free.fr Wed Dec 26 08:21:22 2012 From: therve at free.fr (=?ISO-8859-1?Q?Thomas_Herv=E9?=) Date: Wed, 26 Dec 2012 14:21:22 +0100 Subject: [Twisted-web] Twisted 12.3.0 released Message-ID: <50DAF9D2.3030702@free.fr> On behalf of Twisted Matrix Laboratories, I am pleased to announce, in extremis, the release of Twisted 12.3. 161 tickets are closed by this release, with the following highlights: * Support for local parallel testing in trial * A new "react" function to easily run a single asynchronous function in a script with the reactor. * Partial support for Python 3.3. Note that only Python 2.7 is supported on Windows now. We also require zope.interface 3.6.0 or newer. For more information, see the NEWS file here: http://twistedmatrix.com/Releases/Twisted/12.3/NEWS.txt Download it now from: http://pypi.python.org/packages/source/T/Twisted/Twisted-12.3.0.tar.bz2 or http://pypi.python.org/packages/2.7/T/Twisted/Twisted-12.3.0.win32-py2.7.msi Thanks to the supporters of Twisted via the Software Freedom Conservancy and to the many contributors for this release. -- Thomas From glyph at twistedmatrix.com Thu Dec 27 01:40:05 2012 From: glyph at twistedmatrix.com (Glyph) Date: Wed, 26 Dec 2012 22:40:05 -0800 Subject: [Twisted-web] [Twisted-Python] Twisted 12.3.0 released In-Reply-To: <50DAF9D2.3030702@free.fr> References: <50DAF9D2.3030702@free.fr> Message-ID: <409EE4CA-88EE-4BB1-985C-9C732351AF78@twistedmatrix.com> On Dec 26, 2012, at 5:21 AM, Thomas Herv? wrote: > On behalf of Twisted Matrix Laboratories, I am pleased to announce, in > extremis, the release of Twisted 12.3. Thanks for managing another great release, Thomas!! > 161 tickets are closed by this release, with the following highlights: > > * Support for local parallel testing in trial This doesn't make the feature sound quite as exciting as it is :). For those of you who didn't know this was coming - as of Twisted 12.3.0, you can run 'trial -j 16 ...' if you have 16 cores and finally make use of all those idle cores during Twisted-based development. -glyph -------------- next part -------------- An HTML attachment was scrubbed... URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20121226/3efc578b/attachment.htm