[sync] Problem with RPC

Anthony Mills amills at gascard.net
Sat Dec 13 20:43:17 PST 2003


That's strange.  I have a switch statement in my version.  Is there a 
different branch?

at lines 39 - 47

if (!empty($_SERVER['CONTENT_TYPE'])) {
     switch ($_SERVER['CONTENT_TYPE']) {
     case 'application/vnd.syncml+xml':
         $serverType = 'syncml';
         break;

     case 'application/vnd.syncml+wbxml':
         $serverType = 'syncml_wbxml';
         break;

Am I missing something?

Anthony


Chuck Hagenbuch wrote:
> 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 sync mailing list