I have been using deliverBody to process in responses but decided that readBody might be a better fit.
So far it works with http, but as soon as I switch to https it fails. I get a response http code 200 OK but no data. I've puzzled over this but can't see what the problem is. Has anyone else seen this problem and found out what the solution is. Thanks Response received <twisted.web._newclient.Response object at 0x0362EB50> Response version: ('HTTP', 1, 1) Response code: 200 Response phrase: OK Response headers: Headers({'alternate-protocol': ['443:quic'], 'x-xss-protection': ['1; mode=block'], 'accept-ranges': ['none'], 'expires': ['Mon, 04 Apr 2016 13:32:31 GMT'], 'vary': ['Accept-Language,Accept-Encoding'], 'server': ['mafe'], 'cache-control': ['public, max-age=86400'], 'date': ['Sun, 03 Apr 2016 13:32:31 GMT'], 'x-frame-options': ['SAMEORIGIN'], 'alt-svc': ['quic=":443"; ma=2592000; v="32,31,30,29,28,27,26,25"'], 'content-type': ['application/json; charset=UTF-8']}) LENGTH twisted.web.iweb.UNKNOWN_LENGTH [('Alternate-Protocol', ['443:quic']), ('X-XSS-Protection', ['1; mode=block']), ('Accept-Ranges', ['none']), ('Expires', ['Mon, 04 Apr 2016 13:32:31 GMT']), ('Vary', ['Accept-Language,Accept-Encoding']), ('Server', ['mafe']), ('Cache-Control', ['public, max-age=86400']), ('Date', ['Sun, 03 Apr 2016 13:32:31 GMT']), ('X-Frame-Options', ['SAMEORIGIN']), ('Alt-Svc', ['quic=":443"; ma=2592000; v="32,31,30,29,28,27,26,25"']), ('Content-Type', ['application/json; charset=UTF-8'])] Got Error error res [Failure instance: Traceback (failure with no frames): <class 'twisted.web.client.PartialDownloadError'>: 200 OK ] SHUTDOWN -- *John Aherne* *www.rocs.co.uk <http://www.rocs.co.uk>* 020 7223 7567
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python