Bonjour à tous,
j'ai un problème lorsque je veux envoyer des informations en XML-RPC vers un serveur qui utilise un certificat ssl.
Voici l'erreur:
Et voici le code qui me permet d'envoyer mes informations:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 xmlrpcresp Object ( [val] => 0 [valtyp] => [errno] => 8 [errstr] => CURL error: error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112) [payload] => [hdrs] => Array ( ) [_cookies] => Array ( ) [content_type] => text/xml [raw_data] => ) Unable to login CURL error: error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112)
Est-ce que quelqu'un à une idée d'ou cela provient ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 $this->user = $usr; $this->password = $pass; $this->database = $db; $this->services = $server; $this->client = new xmlrpc_client($this->services.'common'); $this->msg = new xmlrpcmsg('login'); $this->msg->addParam(new xmlrpcval($this->database, "string")); $this->msg->addParam(new xmlrpcval($this->user, "string")); $this->msg->addParam(new xmlrpcval($this->password, "string")); $this->res = &$this->client->send($this->msg); echo"<pre>"; print_r($this->res); echo"</pre>"; echo"<br><br>";
D'avance merci pour votre aide
Partager