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

curl-and-php

Re: Cookie - Unix works, Windows doesn't

From: Marten Menke <mmenke_at_gmail.com>
Date: Mon, 9 Oct 2006 00:29:03 +0200

On Sun, 8 Oct 2006, Daniel Stenberg wrote:
*> I*f I were you I'd start with making sure they both run the same libcurl
version (and a much newer one than the ones you use)...

I tried running PHP 5.1.6 with build in libcurl 7.14.0 on both linux and
windows, but do dice.
Some more searching yielded a solution though:

from: http://www.dinke.net/blog/2006/08/31/curl-http-client/en/

        //hack to make code work on windows
        if(strpos(PHP_OS,"WIN") !== false)
        {
            curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
        }

Works like a charm now.

Thank you for looking into it!

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2006-10-09