XMLRPC & Authentication

Dave Cragg dcragg at lacscentre.co.uk
Tue Jul 19 08:16:12 EDT 2005


On 19 Jul 2005, at 10:56, Jan Schenkel wrote:

> --- david bovill <david at openpartnership.net> wrote:
>
>> Looking into sending xmlrpc calls that require basic
>> http
>> authentication... any ideas as it is not documented
>> in the xmlrpc
>> create request, but is AFAIK part of the libUrl
>> stack... just can't
>> find any docs at the moment...
>>
>>
>
> Hi David,
>
> While you can follow Andre's suggestion to do it
> directly, it is an excellent enhancement request, and
> I suggest you feed it to bugzilla so it can be picked
> up ine of the next releases of Revolution.
>
> The way the current library works, you cannot set your
> own httpHeaders and then call revXMLRPC_Execute, as
> this replaces the httpHeaders with a set of its own
> before calling the web service.
>
> Hope this helped,
>
> Jan Schenkel.

I'm not too sure how the revXMLRPC handlers make http requests, but  
assuming they make use of liburl, you should be able to make use of  
libUrlSetAuthCallback. There is an example in the online docs (url  
below) of how to set this up for basic authentication:

    http://support.runrev.com/resources/ 
liburlrealdocs.html#libUrlSetAuthCallback

It's not the easiest thing to set up, but once done, you can  
basically forget about it.

Cheers
Dave



More information about the use-livecode mailing list