Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: remote-ip in RebXR

From: andreas:bolka:gmx at: 22-Jul-2009 1:10

Graham, On Tue Jul 21 23:30:13 +0200 2009, Graham Chiu wrote:
> I wanted to use it within an exposed method.
Well, that'll require a change to the server. Please give attached patch a try, it allows you to get an "xmlrpc context" by calling 'xmlrpc-context. Such a context currently only has a single field: 'client-port. An example exposed method, to illustrate usage: foo: func [/local ctx] [ ctx: xmlrpc-context mold ctx/client-port/remote-ip ] The patch is against the "2004-09-19 experimental release".
> I noticed that when returning dates, the xmlrpc server would just shut > down :(
XML-RPC does not support pure dates, but only dates which also have a time; those work fine with rebXR:
>> ; server session >> xmlrpc-serve 9090 [now] >> ; client session >> xmlrpc-exec http://localhost:9090/ [now]
== 21-Jul-2009/23:37:18 But I guess it may make sense, to simply set the time to 00:00:00 if no explicit time is given. In any case, I agree that the server simply crashing on missing time values is rather rude :) -- Regards, Andreas -- Binary/unsupported file stripped by Ecartis -- -- Type: application/octet-stream -- File: client-port.patch