[Cryptography] [cryptography] Is it time for a revolution to replace TLS?

Philipp Gühring pg at futureware.at
Mon May 19 11:48:02 EDT 2014


Hi,


> > So, when a HTTP request goes from client to server, is it a datagram
> or
> > a stream?
> >
> > It's a datagram.  Because we know precisely how long it is.  What
> comes
> > back is also datagram, as it is a precise length, and indeed there is
> an
> > internal length header so as to make it easier.

No. For static content (images, html pages, ...) where the size is known
upfront, the length header is sent. For dynamic pages (php, ...), and for
streams, the length header is not sent, and the client has to see when the
transfer ends.
Another variant is the chunked transfer, where the server can respond with
several chunks, and it sends a size for every chunk. But it´ s not known
upfront how many chunks there will be...

Best regards,
Philipp



More information about the cryptography mailing list