Solved

Chunked Transfer Encoding/Decoding

Posted on 1997-06-12
2
1,316 Views
Last Modified: 2013-12-25
Hi all

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 :

Content-Type: application/octet-stream
Transfer-Encoding: chunked

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".
0
Comment
Question by:abd051697
2 Comments
 
LVL 5

Accepted Solution

by:
icd earned 200 total points
ID: 1828199
As far as I can see what you are doing is correct. The HTTP/1.1 protocol 'knows' about the Transfer-Encoding and will deal with it correctly.

As I understand it, just by including the line 'Transfer-Encoding' the server will take care of the rest.

You might find the following reference of use to you.

http://cosanostra.msh.unicaen.fr/WWW/http/http_1.1_spec.html


0
 

Author Comment

by:abd051697
ID: 1828200
i am familiar with this http draft. if all i need to do is provide "Transfer-Encoding: chunked", how do i know that the transfer was safe, and not just like any other.

what more do i have to define to let the end user know that the transfer was safe. based on factual data from the transfer, not just that i am using the chunking method.

last but not least. have you used this method of safe transfer.
if so i would very much like to continue our email banter. so that i may get what i am trying to do working.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question