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

curl-and-php

Re: Open a SSL page

From: David THOMAS <david.thomas_at_exceed.lu>
Date: Mon, 21 May 2001 11:37:36 +0200

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 ?

----- Original Message -----
From: "Daniel Stenberg" <daniel_at_haxx.se>
To: "David THOMAS" <david.thomas_at_exceed.lu>
Cc: "curl and php list" <curl-and-php_at_lists.sourceforge.net>
Sent: Monday, May 21, 2001 11:29 AM
Subject: Re: Open a SSL page

> On Mon, 21 May 2001, David THOMAS wrote:
>
> > Please I need a working example for openning a SSL page and having it
> > into a file
>
> If you have a SSL-enabled libcurl, you fetch https:// the same way you
fetch
> http:// or ftp:// URLs...
>
> <?php
>
> $ch = curl_init ("https://www.openssl.org/");
> $fp = fopen ("openssl_homepage.txt", "w");
>
> curl_setopt ($ch, CURLOPT_FILE, $fp);
> curl_setopt ($ch, CURLOPT_HEADER, 0);
>
> curl_exec ($ch);
> curl_close ($ch);
> fclose ($fp);
> ?>
>
>
> --
> 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-php
>

_______________________________________________
Curl-and-php mailing list
Curl-and-php_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-and-php
Received on 2001-05-21