RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
THTTPReqResp.OnPostingData Event

Occurs before THTTPReqResp sends each chunk of data when the content is large.

Pascal
property OnPostingData: TPostingDataEvent;
C++
__property TPostingDataEvent OnPostingData;

Write an OnPostingData event handler to provide the end-user with feedback of the progress when sending a request that contains a large amount of data. When the content of a request is very large (for example, when it contains large attachments), the Send method breaks the message into blocks, which it sends separately. After sending each of these blocks, it generates an OnPostingData event. You can use the event handler to update a progress bar or similar control to indicate how much of the message has been sent. 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!