Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- http-stream for download
- Florian Windhaus
October 15, 2003, 9:35 am
rate this thread
i am creating a small server-script, which has to be able to send a file to
the browser (file-download).
if the browser is asking for the file, i am sending this header:
"HTTP/1.1 200 OK
Date: Wed, 15 Oct 2003 10:44:51 GMT
Cache-Control: max-age=0, no-cache, must-revalidate
Expires: Wed, 15 Oct 2003 10:44:51 GMT
after this i am opening the file in binary mode and add each bit to the
the browser recognizes this stream as a download stream and askes me, if i
wanna accept it. after i made my choice, i get an error message, telling me,
that the browser is unable to open the file.
has anyone some idea?