F
Florian Windhaus
Hi,
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
Content-Type: application/octet-stream
Cache-Control: max-age=0, no-cache, must-revalidate
Expires: Wed, 15 Oct 2003 10:44:51 GMT
pragma: no-cache
Connection: Close
Content-Disposition: attachment;filename=<filename>
Content-Length: <length_of_file>"
after this i am opening the file in binary mode and add each bit to the
stream.
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.
why?
has anyone some idea?
th@nx Flo
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
Content-Type: application/octet-stream
Cache-Control: max-age=0, no-cache, must-revalidate
Expires: Wed, 15 Oct 2003 10:44:51 GMT
pragma: no-cache
Connection: Close
Content-Disposition: attachment;filename=<filename>
Content-Length: <length_of_file>"
after this i am opening the file in binary mode and add each bit to the
stream.
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.
why?
has anyone some idea?
th@nx Flo