You are here: Re: CURL: Result on console and in PHP are different « PHP Programming Language « IT news, forums, messages
Re: CURL: Result on console and in PHP are different

Posted by Rik Wasmus on 10/31/07 12:04

On Wed, 31 Oct 2007 12:31:29 +0100, Paul van Brouwershaven =

<p.vanbrouwershaven@gmail.com> wrote:

> As saw the space problem just before you post, but this still doesn't
> solve the problem that there is no value in the ssl_verify_result
> result.
>
> If the SSL Certificate is wrong or right it always returns 0!
>
> I can check the result of the curl_exec to see if the certificate is
> valid, but this doen't tell me what the problem is.

Well, I get a clear:
"SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate veri=
fy =

failed"

...with curl_error(), as I don't have the certificate.

set verify peer to false would result in either this curl_error() output=
:
SSL: certificate subject name 'www.verisign.com' does not match target =

host name 'verisign.com'
[ssl_verify_result] =3D> 0]

Or no error with the right hostname:
[ssl_verify_result] =3D> 19]
-- =

Rik Wasmus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация