[dev] Re: [sync] Problem with RPC

Chuck Hagenbuch chuck at horde.org
Sat Dec 13 20:09:47 PST 2003


Quoting Anthony Mills <amills at gascard.net>:

> This didn't seem to work.  Any other ideas?  Also, why did rpc.php not
> have changes to support wbxml.  And the authorization was not bypassed.

I guess that's kind of a relief, actually. The wbxml support should be there,
but there isn't any support for bypassing auth yet. Well, actually, the support
was there in rpc.php, I just hadn't actually done it in the SyncML backend.
I've just ocmmitted that change.

>   Do I not the correct code? My rpc.php is 1.23.

That's the latest version. In it, I have:

if (!empty($_SERVER['CONTENT_TYPE'])) {
    if (strstr($_SERVER['CONTENT_TYPE'], 'application/vnd.syncml+xml')) {
        $serverType = 'syncml';
    } elseif (strstr($_SERVER['CONTENT_TYPE'], 'application/vnd.syncml+wbxml'))
{
        $serverType = 'syncml_wbxml';

... around lines 20-24.

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
"I'm really... I'm not too fascinated by green food." - Average Joe


More information about the dev mailing list