Ticket #463 (assigned enhancement )

Opened 5 years ago

Last modified 1 week ago

[PATCH] HTTP proxy support for XMLRPC client

Reported by: mids Assigned to: oubiwann (accepted)
Type: enhancement Priority: normal
Milestone: Component: web
Keywords: Cc: itamarst, mids, oubiwann
Branch: Author:
Launchpad Bug:

Attachments

xmlrpc_httpproxy.patch (1.8 kB) - added by mids 5 years ago.

Change History

  2004-01-04 16:47:01+00:00 changed 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

  2004-01-04 19:18:41+00:00 changed by mids

  • attachment xmlrpc_httpproxy.patch added

  2004-01-04 19:20:13+00:00 changed 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()

  2007-01-30 14:12:13+00:00 changed 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.

  2007-02-27 18:37:47+00:00 changed by oubiwann

  • cc changed from itamarst, mids to itamarst, mids, oubiwann
  • status changed from new to assigned

  2007-06-23 14:29:58+00:00 changed by fsteinel

isn't Issue #1895 a duplicate?

  2007-06-23 15:24:06+00:00 changed by exarkun

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

  2008-11-09 20:41:18+00:00 changed by thijs

  • launchpad_bug deleted
  • branch deleted
  • branch_author deleted

Looks like it's missing unit tests.

Note: See TracTickets for help on using tickets.