Chunked Transfer Encoding/Decoding
Posted on 1997-06-12
This ones for the hardcores. I have set up some cgi and html so the user may select specific files to download from my pages.
Everything works for me, however i want there to be some form of safe transfer passage during the download. I want the user to know that the file they have just downloaded is uncorrupted in any fashion. I am aware of chunked transfers and what it means, but how do i incorporate it into my pages.
Currently i have in my script, before i push the file out :
I think there should be more to chunking than this.
What else do i need to define? and does HTTP know at the client end to decode these chunked up transfers?
The content-type is so the file that is being downloaded is passed on as is. i.e if it's a ".zip" then it remains a ".zip".