Opened 12 years ago

Last modified 6 years ago

#463 enhancement assigned

[PATCH] HTTP proxy support for XMLRPC client

Reported by: mids Owned by:
Priority: normal Milestone:
Component: web Keywords:
Cc: itamarst, mids, oubiwann Branch:


Attachments (1)

xmlrpc_httpproxy.patch (1.8 KB) - added by mids 12 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 12 years ago by mids

Allowing HTTP clients to connect to a server through a HTTP proxy.
Especially for XMLRPC/SOAP usage.

For example something simular to:

Changed 12 years ago by mids

comment:2 Changed 12 years ago by mids

from twisted.web.xmlrpc import Proxy
from twisted.internet import reactor

def printValue(value):
    print repr(value)

def printError(error):
    print 'error', error

if "__main__" == __name__:

    proxy = Proxy('',
http_proxyhost='', http_proxyport=8081)
    #proxy = Proxy('')
    proxy.callRemote('examples.getStateName', 41).addCallbacks(printValue,

comment:3 Changed 9 years ago by itamarst

  • Owner changed from itamarst to oubiwann

As a probably better alternative to adding this to XML-RPC client, if #885 is implemented, and the client has proxy support (as it should), then XML-RPC clients will get proxy support for free.

Not sure if this is web or web2. Maybe Duncan will work on it, I likely won't.

comment:4 Changed 9 years ago by oubiwann

  • Cc oubiwann added
  • Status changed from new to assigned

comment:5 Changed 9 years ago by fsteinel

isn't Issue #1895 a duplicate?

comment:6 Changed 9 years ago by exarkun

#1895 is about web2, this one's about web.

comment:7 Changed 8 years ago by thijs

Looks like it's missing unit tests.

comment:8 Changed 6 years ago by exarkun

This should be done by adding a proxy-supporting Agent-alike and resolving #885.

comment:9 Changed 5 years ago by <automation>

  • Owner oubiwann deleted
Note: See TracTickets for help on using tickets.