Hello all,
Since a few month the fotolia api does not work any longer. What I read in this forum is that the http call should be changed to https. But this does not work
what we dit was the following:
Original code
1. function callFotoliaMethod($methode_name, $request_array) {
2. $request_param = xmlrpc_encode_request($methode_name, $request_array);
3. $context = stream_context_create(array('http' => array( 'method' => "POST", 'header' => "Content-Type: text/xml", 'content' => $request_param)));
6. $response = xmlrpc_decode($file);
7. if ($response && xmlrpc_is_fault($response)) {
8. @trigger_error("xmlrpc: $response[faultString] ($response[faultCode])");
9. } else {
10. return $response;
11. }
change 2 : aditional to change 1: line 3 $context = stream_context_create(array('https' => array( 'method' => "POST", 'header' => "Content-Type: text/xml", 'content' => $request_param)));
neither changes did work so back to original file
Any ideas?
Regards,
Frank