Re: CURL: Result on console and in PHP are different



Paul van Brouwershaven <p.vanbrouwershaven@xxxxxxxxx> wrote in
news:1193847270.228502.306510@xxxxxxxxxxxxxxxxxxxxxxxxxxx:

On Oct 31, 1:04 pm, "Rik Wasmus" <luiheidsgoe...@xxxxxxxxxxx> wrote:
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
verify failed"

..with curl_error(), as I don't have the certificate.
Ok found the problem, the curl_close($ch) was before the
curl_error($ch)

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] => 0]

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

ssl_verify_result does not change in my results

are you still using "verisign.com" and not "www.verisign.com" ?


.



Relevant Pages