Opened 14 years ago

Last modified 21 months 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 14 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 Changed 14 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 14 years ago by mids

Attachment: xmlrpc_httpproxy.patch added

comment:2 Changed 14 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 11 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 11 years ago by oubiwann

Cc: oubiwann added
Status: newassigned

comment:5 Changed 11 years ago by fsteinel

isn't Issue #1895 a duplicate?

comment:6 Changed 11 years ago by Jean-Paul Calderone

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

comment:7 Changed 9 years ago by Thijs Triemstra

Looks like it's missing unit tests.

comment:8 Changed 8 years ago by Jean-Paul Calderone

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

comment:9 Changed 7 years ago by <automation>

Owner: oubiwann deleted

comment:10 Changed 21 months ago by GitHub <noreply@…>

In c462cc11:

Merge pull request #463 from twisted/8724-rodrigc-tox-ext

Author: rodrigc
Reviewer: glyph
Fixes: #8724

Fix building of C extensions, especially visible on Windows

Note: See TracTickets for help on using tickets.