Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
3
Impact
~108 people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Jan
25
awarded  Peer Pressure
Jan
18
comment How should I handle a HTTP response whose body takes time to generate, and whose headers cannot be determined until generation is complete?
(but you said no ajax :-) )
Jan
18
comment How should I handle a HTTP response whose body takes time to generate, and whose headers cannot be determined until generation is complete?
let me caveat that by saying, I don't think IE handles file uploading like that, but I did something similar to reassemble a base64encoded blob stored in a database. I basically had a link containing an encoded file (within page), and I edited the contents of the link within my js, until I'd downloaded and reassembled all the file, then allow the user to download it.
Jan
18
comment How should I handle a HTTP response whose body takes time to generate, and whose headers cannot be determined until generation is complete?
I suspect, when attempting to re-invent the wheel, 9 times out of 10, a good engineer will conclude that what was done before, was probably done like that for a good reason :-) Although in answer to the objective behind the reason, you could use web 2.0 to have a Javascript app, running on the client, that would know to ask a cgi-bin for a named file, in a named format, offset to a particular chunk, such that the cgi-bin needn't create the tmp file at all, and could just stream the data back to the client. The JS could then reassemble the file, and drive the whole thing, including errors.
Jan
18
awarded  Revival
Jan
18
answered How should I handle a HTTP response whose body takes time to generate, and whose headers cannot be determined until generation is complete?
Jan
7
awarded  Teacher
Jan
7
answered Unwritten rules of rewriting another team member's code