http ReadRange method
Return to Introduction  Previous page  Next page
Applies to
auHTTP component.  

Declaration
function ReadRange(StartRange: Cardinal; EndRange: Cardinal = 0; ForceWaitThread: Boolean = False);  

Description
The ReadRange property downloads part of some binary data file from the Web. The part of that file can be specified by StartRange and EndRange parameters.  
 
StartRange parameter specifies starting position of data block to download, and the EndRange parameter specified the end of the block. In case if EndRange is 0, the component will download part from StartRange till the end of file.  
 
tip Alternatively, for partial download, you can use StartRange and EndRange properties in the Range structure and use usual Read method.  

See also
URL, RequestMethod and Busy properties;  
WaitThread and WaitTimeout properties;  
Read, Abort, Pause, Resume methods.  
File not found.