[Fwd: XMLRPC Class]
Edd Dumbill <[email protected]> Tue, 16 Dec 2003 22:30:24 +0000
| Newsgroups | gmane.comp.php.xml-rpc |
|---|---|
| Organization | Useful Information Company <http://usefulinc.com/> |
| Message-ID | <1071613823.15249.30.camel@pecan> |
-----Forwarded Message----- From: Laurent GROUSSET <[email protected]> To: [email protected] Subject: XMLRPC Class Date: Tue, 16 Dec 2003 15:03:42 +0100 Hy, Well i have use your usefull XMLRPC class … But i need to specify an idsession to connect to the server. So i modify you class. You can catch it in the attached file. I’ve just add this in the xmlrpc_client class : var $sid=''; function setSessionID($thisSID) { $this->sid=$thisSID; } And this to the sendPayloadHTTP10 methode o: $credentials=''; if ($username!='') { $credentials='Authorization: Basic ' . base64_encode($username . ':' . $password) . "\r\n"; } if ($this->sid!='') { $credentials.='Cookie: sid=' . $this->sid . "\r\n"; } $op= "POST " . $this->path. " HTTP/1.0\r\nUser-Agent: PHP XMLRPC 1.0\r\n" . "Host: ". $this->server . "\r\n" . $credentials . "Content-Type: text/xml\r\nContent-Length: " . strlen($msg->payload) . "\r\n\r\n" . $msg->payload; I hope i twill be usefull for you. Best regards. Laurent _______________________________________________ phpxmlrpc mailing list [email protected] http://lists.usefulinc.com/cgi-bin/mailman/listinfo/phpxmlrpc
xmlrpcClientGateway.inc
(application/octet-stream, 1.5 KB) - not displayed