Здравствуйте! Проблема следующая: в файле создается XML а затем отправляется серверу, вроде все правильно написано, но выскакивает ошибка "Fatal error: Call to undefined function curl_init() in Z:\home\localhost\www\sll\system\tools\test.php on line 60" Все перерыл, не могу понять чем она вызвана((( PHP: <? $xml=new DomDocument('1.0','windows-1251'); $product = $xml->appendChild($xml->createElement('product')); $prequest = $product->appendChild($xml->createElement('prequest')); $req=$prequest->appendChild($xml->createElement('req')); $RequestorReq=$req->appendChild($xml->createElement('RequestorReq')); ........ ........ $Value->appendChild($xml->createTextNode('5000')); $xml->formatOutput = true; $xml->save('otpr.xml'); /*echo $xml->saveXML();*/ $ch = curl_init(); $header[] = "Content-type: text/xml"; #must be specified $postData['userInfo'] = "otpr.xml"; $url = "https://icrs.demo.nbki.ru/expansionScore"; curl_setopt($ch, CURLOPT_URL, $url); #URL to fetch curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); #return the transfer as a string curl_setopt($ch, CURLOPT_HTTPHEADER, $header); #add header curl_setopt($ch, CURLOPT_POST, 1); #do a regular HTTP POST curl_setopt($ch, CURLOPT_POSTFIELDS, $postData); #send a xml-file $response = curl_exec($ch); print "Ответ сервера is " . $response . "<br>"; if(curl_errno($ch)) { print curl_error($ch); } curl_close ($ch); ?> Файл XML создается нормально, тестю на денвере. пхп 5...
Так же как и всё остальное: http://www.google.by/#hl=ru&source=hp&b ... ad4e11c72c Зависит от вашей ОС и сервера
Проблему решил... Теперь новая... Ответ сервера... "error:140920F8:SSL routines:SSL3_GET_SERVER_HELLO:unknown cipher returned " я так понимаю сервер нормально принимает данные, а ответ каким то образом зашифрован??? подскажите пожалуйста???