I've checked out the expressive http version of the code mentioned in the ticket, but I still can't seem to figure out how to get access to the response headers.<br><br>Aaron..do you have an example of how you used HTTPClientFactory? <br>
<br>Any suggestions about the best way to implement this using either the official twisted branch or the expressive client branch would be helpful. I've implemented similar functionality in the past around urllib2, but my experience with Twisted is very limited.<br>
<br>I've been looking at the code for the past two hours. I just can't figure it out. :(<br><br>Thanks!<br><br><br><br><div class="gmail_quote">On Mon, Dec 8, 2008 at 8:34 PM, <span dir="ltr"><<a href="mailto:glyph@divmod.com" target="_blank">glyph@divmod.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
getPage has a number of deficiencies. JP Calderone and Itamar Shtull- Trauring have been working on this ticket: <<a href="http://twistedmatrix.com/trac/ticket/886" target="_blank">http://twistedmatrix.com/trac/ticket/886</a>> which (among other things) adds support for response headers and the hooks with which one would implement deflate support.<div>
<div></div><div><br>
<br>
On 12:47 am, <a href="mailto:alecf@metaweb.com" target="_blank">alecf@metaweb.com</a> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Along similar lines, is there a better API than getPage() that allows you to get headers, content-type, etc? The below could be easiliy implemented as a callback if the callback knew what headers it got, so it knew whether or not to deflate the body.<br>
<br>
Alec<br>
<br>
On Dec 8, 2008, at 4:00 PM, Sam's Lists wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is there any support for compress/deflate for webpages using the web client via getPage?<br>
<br>
If not, does anyone have a wrapper function before I make my own?<br>
<br>
Thanks<br>
<br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com" target="_blank">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</blockquote>
<br>
<br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com" target="_blank">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</blockquote>
<br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com" target="_blank">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</div></div></blockquote></div><br>