Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Chunked Transfer Encoding/Decoding

Posted on 1997-06-12
2
Medium Priority
?
1,363 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 400 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
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…
Suggested Courses

609 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