Dear sirs,
I'm trying to do XMLRPC/SSL via PHP and I'm using your library that I found on sourceforge. But apparently no variables are sent with the request, or they are emptied. Can anyone tell me why they are sent as empty strings? I'm using the latest published version of the libraries. Here is my code:


$f=new xmlrpcmsg('auth', array(
   new xmlrpcval("someUsername"),
   new xmlrpcval("somePassword")));
print "out = " . $f->serialize();

// This outputs only
// out = auth $c=new xmlrpc_client("/", $server, 1443);
$c->setSSLVerifyPeer(0); $c->setDebug(1);
$r=$c->send($f,20,"https");


This outputs:

out = auth   ---GOT---
HTTP/1.0 200 OK
Server: BaseHTTP/0.2 Python/2.2.2
Date: Tue, 01 Feb 2005 11:37:49 GMT
Content-type: text/xml
Content-length: 158

<?xml version='1.0'?>
<methodResponse>
<params>
<param>
<value><string>ERROR, invalid username/password</string></value>
</param>
</params>
</methodResponse>

---END---

HEADER: HTTP/1.0 200 OK
HEADER: Server: BaseHTTP/0.2 Python/2.2.2
HEADER: Date: Tue, 01 Feb 2005 11:37:49 GMT
HEADER: Content-type: text/xml
HEADER: Content-length: 158

---EVALING---[53 chars]---
new xmlrpcval("ERROR, invalid username/password", '');
---END---

And the debug messages from my server is:

username =  and password =

The same stuff works excelent with both Python and Java. But now I need to do this with PHP. Any ideas?

Cheers

 Nik

_______________________________________________
phpxmlrpc mailing list
phpxmlrpc@lists.usefulinc.com
http://lists.usefulinc.com/cgi-bin/mailman/listinfo/phpxmlrpc

Reply via email to