Internet Direct (Indy)
Home
PreviousUpNext
TIdHTTPResponse.ContentStream Property

Contains the streamed content for the HTTP response.

Pascal
property ContentStream: TIdStream;

ContentStream is a TStream property that represents the stream used when TIdHTTP is used to read the content in an HTTP response for a Get or Post request. 

ContentStream is assigned during opening of the connection to the HTTP host. 

ContentStream is used during HTTP response processing, and is used with the IOHandler in the HTTP client to read streamed values from the HTTP server. When assigned, the size of ContentStream should match the ContentLength for the response. Otherwise, response content is read until the connection is closed. 

ContentStream may also be used to retrieve "chunked" response content when the transfer encoding for the response indicates that "chunked" retrieval is supported.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.