<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Aug 5, 2011, at 4:14 AM, Damiano ALBANI wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Menlo; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>Regarding this last bug, I was wondering if there could a generic HTTP proxy mechanism, like with SOCKS, and not tied to the Web client.</div><div>Because we might want to use an HTTP proxy for something else that Web traffic.</div><div><br></div><div>What would be nice in Twisted is a&nbsp;generic, upper-protocol-agnostic proxy mechanism &nbsp;-- and one that would support indistinctly SOCKS and HTTP kinds of proxies.</div></span></blockquote><br></div><div>You've correctly identified the status of HTTP and SOCKS proxy support in Twisted.</div><div><br></div><div>However, it doesn't really make sense to have a "generic" proxy layer - different protocols have wildly different rules about what it means to proxy a connection. &nbsp;HTTP and SOCKS can proxy the same traffic and get very different results about where that traffic goes. Similarly, it doesn't make sense to use an HTTP proxy for anything other than HTTP traffic. &nbsp;If you could clarify your request perhaps we could file a ticket? &nbsp;Otherwise it would be great if you could contribute a patch to advance one of those existing tickets.</div><div><br></div><div>If you want a totally generic (i.e. TCP-level) proxy, Twisted does contain one: you can run 'twistd portforward --help' for information about how to run it.</div><div><br></div><div>Good luck,</div><div><br></div><div>-glyph</div></body></html>