[Twisted-Python] web.client.readBody

Cory Thanks for the detailed reply. I'll see what I can make of it. I must admit I don't see Google paying much attention to this. It does work if I use response.deliverBody, but I thought getting the complete response in one hit would be better. John -- *John Aherne* *www.rocs.co.uk <http://www.rocs.co.uk>* 020 7223 7567

Yeah, so the difference is that with response.deliverBody you’re not checking the code in connectionLost. If you were, you’d be seeing PotentialDataLoss as well. ;) There’s nothing wrong with using readBody, you just need to adjust your errback/callback chain to transform the response appropriately in this case. And yeah, I doubt Google will listen. =P Cory

Yeah, so the difference is that with response.deliverBody you’re not checking the code in connectionLost. If you were, you’d be seeing PotentialDataLoss as well. ;) There’s nothing wrong with using readBody, you just need to adjust your errback/callback chain to transform the response appropriately in this case. And yeah, I doubt Google will listen. =P Cory
participants (2)
-
Cory Benfield
-
John Aherne