XML boş hatası alanlar curl kısmına bunu eklerlerse sorun çözülecektir. curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);