What is the correct way for an HTTP server to send data across multiple packets?
For example, I want to transfer a file, the first package I send:
HTTP/1.1 200 OK Content-type: application/force-download Content-Type: application/download Content-Type: application/octet-stream Content-Description: File Transfer Content-disposition: attachment; filename=test.dat Content-Transfer-Encoding: chunked 400 <first 1024 bytes here> 400 <next 1024 bytes here> 400 <next 1024 bytes here>
Now I need to create a new package if I just send:
400 <next 1024 bytes here>
All clients that close my connections and files are truncated.
What headers do I put in the second packet to continue the flow of data?
myforwik
source share