curl-and-php
Re: File Open & download
Date: Wed, 6 Feb 2002 15:25:28 +0100
so any ideas ??
it's really urgent.
Many thanks in advance
----- Original Message -----
From: David THOMAS
To: curl and php list
Sent: Tuesday, February 05, 2002 3:30 PM
Subject: File Open & download
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-06