curl-and-php
Re: Fw: Open a SSL page
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 21 May 2001 11:41:40 +0200 (MET DST)
Date: Mon, 21 May 2001 11:41:40 +0200 (MET DST)
On Mon, 21 May 2001, David THOMAS wrote:
> > thanks works now !
> >
> > why
> > <?
> > $ch = curl_init ("https://www.djgdjdjdsg.com/");
> > $fp = fopen ("ssl.html", "w");
> > curl_setopt ($ch, CURLOPT_INFILE, $fp);
> > curl_setopt ($ch, CURLOPT_HEADER, 0);
> > curl_exec ($ch);
> > curl_close ($ch);
> > fclose ($fp);
> > ?>
> > doesn't work ?
Because you specified CURLOPT_INFILE and not CURLOPT_FILE as you are supposed
to. The INFILE option is used for uploads.
-- Daniel Stenberg -- curl dude -- http://curl.haxx.se/ _______________________________________________ Curl-and-php mailing list Curl-and-php_at_lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/curl-and-phpReceived on 2001-05-21