RE: Re[2]: have error 'couldn't connect to host' for one host

"Liu Shan Shui" <[email protected]>
Newsgroups gmane.comp.web.curl.php
Message-ID <000601ca0e42$6772af00$36580d00$@sg>
Hi Vasily,

I'm guessing this is either a DNS issue or a network issue. Try running
"ping secure.linkpt.net" from your linux box and check if it's able to
resolve to an IP address and ping successfully.

If ping works, then my next guess would be SSL. Try using cURL to fetch a
non-HTTPS page on secure.linkpt.net from your linux box and see if it's able
to fetch it back.

Let us know how it goes.

With regards,
Liu Shan Shui
[email protected]
"Life would be much easier if I had the source code." - Anonymous

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of ??????? ?????????
Sent: Monday, July 27, 2009 4:33 AM
To: Stephen Pynenburg
Cc: curl with PHP
Subject: Re[2]: have error 'couldn't connect to host' for one host

Yes, I did it. There is libcurl/7.18.1 OpenSSL/0.9.8b zlib/1.2.3
libidn/0.6.5 .
So I can connect to https://google.com, but cant connect to my host.

-----Original Message-----
From: Stephen Pynenburg <[email protected]>
To: Василий Сергеевич <[email protected]>, 
curl with PHP <[email protected]>
Date: Sun, 26 Jul 2009 14:03:07 -0400
Subject: Re: have error 'couldn't connect to host' for one host

|Vasili,
|The only thing I can think of is to run phpinfo() and make sure that under
|cURL heading, cURL information should show something like: libcurl/7.16.0
|OpenSSL/0.9.8i zlib/1.2.3, meaning you have OpenSSL installed. It's
possible
|(though unlikely) that you don't. So check that and post again. :]
|-Stephen
|
|2009/7/26 Василий Сергеевич <[email protected]>
|
|> 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: [email protected]
|> ICQ: 227995043
|>
|> _______________________________________________
|> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
|>
|
|

                                  V.S.
e-mail: [email protected]
ICQ: 227995043

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.