curl-and-php
CURL - Download file in HTTPS site
From: Guillaume Tilleul <TILLEULG_at_fr.ibm.com>
Date: Tue, 24 May 2005 17:04:35 +0200
Date: Tue, 24 May 2005 17:04:35 +0200
Hello
I need to download automaticly a file in HTTPS Website with
authentification.
without SSL this script is working but not in https.
Can you help me?
Thanks
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://........./xxxxxx.csv");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERPWD, "user:password");
curl_exec($ch);
curl_close($ch);
?>
Received on 2005-05-24