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

curl-and-php

File Open & download

From: David THOMAS <david.thomas_at_exceed.lu>
Date: Tue, 5 Feb 2002 15:30:45 +0100

Hi

We have a picture with this link
https://www.domain.com/download.php?f=myfile.zip

The download file is the following
<?
header("Content-Type: application/octet-stream");
header("Content-Length: ".filesize("$UPLOAD_PATH/$f"));
header("Content-Disposition: attachment; filename=" . basename("$UPLOAD_PATH/$f"));
$data="";
while (!feof($d)) $data.=fread($d,100000);
fclose($d);
print $data;
?>

It works well with Netscape but nothing happends with IE (just cannot download)
However if we try the link without https it works well with IE.

Any ideas? Maybe CURL could help me.

Many thanks
David
Received on 2002-02-05