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

curl-and-php

Re: CURL - Download file in HTTPS site

From: Guillaume Tilleul <TILLEULG_at_fr.ibm.com>
Date: Wed, 25 May 2005 10:56:45 +0200

Hello,

- libcurl version?
libcurl/7.11.2 OpenSSL/0.9.7c zlib/1.1.4
- operating system?
WINDOWS 2003 SERVER
- What happens when it doesn't work?

<?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);
?>

I need to download automaticly file CSV in one HTTPS server with
authentification login-password
automatic login and password is ok because i tested with HTTP Server

I don't understand really how i can to do this :(
can you give me if you have a sample script ?

Thanks

Daniel Stenberg <daniel-curl_at_haxx.se>
Sent by: curl-and-php-bounces_at_cool.haxx.se
24/05/2005 22:35
Please respond to
Programming PHP/CURL

To
Programming PHP/CURL <curl-and-php_at_cool.haxx.se>
cc

Subject
Re: CURL - Download file in HTTPS site

On Tue, 24 May 2005, Guillaume Tilleul wrote:

> I need to download automaticly a file in HTTPS Website with
> authentification. without SSL this script is working but not in https.

- libcurl version?
- operating system?
- What happens when it doesn't work?

Read this? http://curl.haxx.se/docs/sslcerts.html

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-05-25