php download file via https problem

From: Date: Mon, 06 Nov 2000 08:55:19 +0000
Subject: php download file via https problem
Groups: php.dev 
Request: Send a blank email to php-dev+get-37234@lists.php.net to get a copy of this message
hi,i hava a problem this download file via https using php, this script can download file via http, but can not download file via https, maybe http header is not right. can you help me. thanks. ----------------------------- <?php $realname="/usr/local/disk/1"; $file_name="test.dat"; header("Content-Length: ".filesize($realname)); header("Content-Type: application/octet-stream; attachment; name=".$file_name); header("Content-Disposition: attachment ; filename=".$file_name); readfile($realname); ?> --------------------

« previous php.dev (#37234) next »