The URL you showed works fine for me using the current Indy 10 SVN snapshot. It does not get stuck.
As for why the ContentLength
property is -1, that happens when there is no Content-Length
header present. That can happen for one of several reasons:
a
Transfer-Encoding
header is present and specifies achunked
encoding is being used. Chunked data is self-terminating.a
Content-Type
header is present specifying MIMEmultipart/...
data is being sent, such asmultipart/byteranges
. MIME is self-terminating.the HTTP response is terminated by having the server close the connection.
Refer to RFC 2616 Section 4.4 "Message Length". for more details.