curl-and-php
Re: having trouble using curl with https.
Date: Mon, 26 Nov 2001 03:58:36 -0600
I don't know if I posted my solution re: https and curl/php (libcurl).
My fix was to upgrade from PHP 4.0.6 to PHP 4.1 RC3. I had to download the
following:
http://www.php.net/~zeev/php-4.1.0RC3.tar.gz
and NOT the CVS version (it wouldnt compile on FreeBSD 4.3). Installing the
new PHP resolved my issues with getting Curl's HTTPS to work with PHP.
Thanks,
Michael Brown
HBHosting.com
mike_at_hbhosting.com
----- Original Message -----
From: "Daniel Stenberg" <daniel_at_haxx.se>
To: "Mike Brown" <mike_at_hbhosting.com>
Cc: "Brian Jankovich" <brian_at_virtualnetmedia.com>; "curl and php list"
<curl-and-php_at_lists.sourceforge.net>
Sent: Monday, November 26, 2001 3:36 AM
Subject: Re: having trouble using curl with https.
> On Sat, 24 Nov 2001, Mike Brown wrote:
>
> > This is a common problem, in which I really wish the Curl team would
> > post support information on their website about it.
>
> We (if I would speak for "the Curl team") desperately need information in
> order to post that "support information".
>
> As we don't have any, we can't post any.
>
> In general, people ask questions here when they have a problem they can't
fix
> themselves, then they never get back again when they've solved it. Thus,
all
> we get to see is a series of problem reports without ever learning what
the
> solutions are.
>
> I am a pretty lousy representative for the curl team here, as I've never
> coded a single line of PHP! If anyone feels like stepping in and helping
out
> the curl team in this area, feel free to contribute anything you think
will
> improve the situation!
>
> > The fix that I found to work, was to install PHP 4.1 (yes, it's not an
> > official release, but it fixes the problem). From what I found, Curl
> > changed their API in May 2001, which caused it to stop working with PHP
> > for https.
>
> I know this is what is said in a PHP bug report, but it is in fact not the
> true reason. There was a change in the API, yes, but it was made backwards
> compatible so that unmodified previous old code works fine with the new
API.
> The problem in the php4/ext/curl.c code is that it was adjusted to the new
> API, but not done correctly.
>
> However, some people claim they use SSL with curl and PHP 4.0.6, which
> contradicts this.
>
> --
> Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
>
>
>
Received on 2001-11-26