cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

have error 'couldn't connect to host' for one host

From: Василий Сергеевич <vasso_m_at_mail.ru>
Date: Sun, 26 Jul 2009 16:30:27 +0400

Hi

have code
$ch = curl_init ();
curl_setopt ($ch, CURLOPT_URL,$host);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $xml);
curl_setopt ($ch, CURLOPT_SSLCERT, $key);
curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);

it is working on my local host (os windows xp), but dont work for remote server (linux) and return error 'couldn't connect to host'. I try use other host (google.com), it it work on remote server. But host 'https://secure.linkpt.net' dont work. I think that reasons in server setting. Can you give a hint me how setting remote server?

                                  V.S.
e-mail: vasso_m_at_mail.ru
ICQ: 227995043

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2009-07-26