Hi David

I think I did some progress but I still not find any demexp cookie on my
machine ??

Heres the new code :
______________________________________________________________
<?php
include 'xmlrpc.inc';

// Object to represent the server
$server = new
xmlrpc_client("http://www.linux-france.org/cgi-bin/demexp-xmlrpc-demo";);

// mode debug
$server->setDebug(1);

// Send a message to the server.
$login  =       new xmlrpcval("root", "string");
$passwd =       new xmlrpcval("demexp", "string");

$message = new xmlrpcmsg("login", array($login, $passwd));

$result = $server->send($message);

// Process the response.
if (!$result)
{
     print "<p>Could not connect to HTTP server.</p>";
}
elseif ($result->faultCode())
{
     print "<p>XML-RPC Fault #" . $result->faultCode() . ": " .
     $result->faultString();
}
else
{
        $cookie = $result->value();             
        if(!empty($cookie))
        {
                $name=demexp_cookie;
                $server->setCookie($name);
        }       
}
___________________________________________________________________

Still like to have your advice.. :)

Yours 
Diogene



_______________________________________________
Demexp-dev mailing list
Demexp-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/demexp-dev

Répondre à