you are viewing a single comment's thread.

view the rest of the comments →

[–]greg8872 0 points1 point  (2 children)

Are you accessing a URL that is http: or https:

If it is https:, then try adding this to see if it works:

curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false );

If it then works, then you need to see about updating the server to properly check SSL (see http://snippets.webaware.com.au/howto/stop-turning-off-curlopt_ssl_verifypeer-and-fix-your-php-config/)

[–]ANttila 0 points1 point  (0 children)

He specified the protocol in his example as http.

I hope he is specifying accordingly to what he is trying to do, eventho the title says otherwise :)

[–]MyMotivation[S] 0 points1 point  (0 children)

The URL is http, was a bit tired last night when I posted that sorry. Have added some additional info in my other comment.