Ticket #463 enhancement assigned

Opened 9 years ago

Last modified 3 years ago

[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

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

Change History

1

Changed 9 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 9 years ago by mids

2

Changed 9 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()

3

Changed 6 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.

4

Changed 6 years ago by oubiwann

  • cc oubiwann added
  • status changed from new to assigned

5

Changed 6 years ago by fsteinel

isn't Issue #1895 a duplicate?

6

Changed 6 years ago by exarkun

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

7

Changed 5 years ago by thijs

Looks like it's missing unit tests.

8

Changed 3 years ago by exarkun

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

9

Changed 2 years ago by <automation>

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