St.Antario
St.Antario

Reputation: 27455

How to transfer large amount of data through HTTP?

I'm writing a web server to be able to stream back to clients large amount data. The question is the sending data may be too large. So I cannot know the lenght of the content.

Maybe chunked HTTP-response would help. But how can I let HTTP-client know that the data is over (end of stream)?

Upvotes: 0

Views: 346

Answers (1)

user325117
user325117

Reputation:

It's described in RFC 2616, section 3.6.1:

The chunked encoding is ended by any chunk whose size is zero, followed by the trailer, which is terminated by an empty line.

Upvotes: 2

Related Questions