Opened 11 years ago

Last modified 5 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:
Author: Launchpad Bug:

Description


Attachments (1)

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

Download all attachments as: .zip

Change History (10)

comment:1 Changed 11 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:
http://markpasc.org/lj/200301/proxy.py

Changed 11 years ago by mids

comment:2 Changed 11 years ago by mids

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

def printValue(value):
    print repr(value)
    reactor.stop()

def printError(error):
    print 'error', error
    reactor.stop()

if "__main__" == __name__:

    proxy = Proxy('http://betty.userland.com/RPC2',
http_proxyhost='myproxy.com', http_proxyport=8081)
    #proxy = Proxy('http://betty.userland.com/RPC2')
    proxy.callRemote('examples.getStateName', 41).addCallbacks(printValue,
printError)
    reactor.run()

comment:3 Changed 8 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 8 years ago by oubiwann

  • Cc oubiwann added
  • Status changed from new to assigned

comment:5 Changed 8 years ago by fsteinel

isn't Issue #1895 a duplicate?

comment:6 Changed 8 years ago by exarkun

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

comment:7 Changed 6 years ago by thijs

Looks like it's missing unit tests.

comment:8 Changed 5 years ago by exarkun

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

comment:9 Changed 4 years ago by <automation>

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