Thanks for your reply. The app I was interested in fixing was gm-notify (<a href="https://code.launchpad.net/gm-notify">https://code.launchpad.net/gm-notify</a>) which is a notifier for gmail. But to be honest I&#39;ve since lost interest in the question because I patched gwibber to read the gmail atom feed instead of fixing this :)<br>
<br>Anyway the relevant code is:<br>d = defer.Deferred()<br>c = ClientCreator(reactor, IMAPClient)<br>c.connectSSL(&quot;<a href="http://imap.gmail.com">imap.gmail.com</a>&quot;, 993, ssl.ClientContextFactory()).addCallback(self._gotProtocol, d)<br>
<br>Here connectSSL should use a proxy<br>In case someone knows how to fix this I&#39;m sure there will be other people who will appreciate it (<a href="https://bugs.launchpad.net/gm-notify/+bug/371878">https://bugs.launchpad.net/gm-notify/+bug/371878</a>)<br>
<br>Thanks<br><br><div class="gmail_quote">On Wed, Sep 2, 2009 at 3:21 AM,  <span dir="ltr">&lt;<a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>&gt;</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;">
<div><div></div><div class="h5">On 05:28 pm, <a href="mailto:hellfeuer@gmail.com">hellfeuer@gmail.com</a> wrote:<br>
&gt;First of let me say that I&#39;m *very* new to twisted (I&#39;m only trying to<br>
&gt;patch<br>
&gt;an app that uses twisted). So sorry if this is a stupid question.<br>
&gt;<br>
&gt;The problem is I am behind an http proxy (with authentication), so I<br>
&gt;need to<br>
&gt;connect through that proxy. The documentation doesn&#39;t help (me) much<br>
&gt;and<br>
&gt;neither does google (mostly because there are a million people who have<br>
&gt;created their own proxy server. This is not what I want to do).<br>
&gt;<br>
&gt;Any tips? The app is currently using ClientCreator (to make an SSL<br>
&gt;connection), but I&#39;m willing to change all that if necessary.<br>
<br>
</div></div>If you&#39;re using twisted.web.client, then this will be tough, as there<br>
really isn&#39;t any support for HTTP proxies in that API.  You might be<br>
able to get something to work if you&#39;re using HTTPPageGetter directly,<br>
though - specify the right proxy authentication headers in the headers<br>
dictionary you give to the factory, make sure you put the full URI in<br>
the request path, etc.<br>
<br>
If you&#39;re doing something else, then maybe you can elaborate on that. :)<br>
<br>
The new HTTP client API which has not yet been part of any release will<br>
make this easier, but that doesn&#39;t help you if you need to work with an<br>
existing version of Twisted.<br>
<br>
Jean-Paul<br>
<br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">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></div><br>