Solved

Chunked Transfer Encoding/Decoding

Posted on 1997-06-12
2
1,306 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
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
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…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now