Solved

Chunked Transfer Encoding/Decoding

Posted on 1997-06-12
2
1,322 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
This article will show, step by step, how to integrate R code into a R Sweave document
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…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

738 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