FinishHTTP()
Syntax
Result = FinishHTTP(HttpConnection)Description
Free the resources associated to the specified asynchronous download, started either with ReceiveHTTPFile() or ReceiveHTTPMemory(). It must be always called after a successful call of ReceiveHTTPFile() or ReceiveHTTPMemory().
Parameters
HttpConnection The HTTP connection to finish.
Return value
Depending on which Receive command was used to start the download, FinishHTTP() returns one of the following results:
ReceiveHTTPFile(): Amount of received bytes (size of the stored file).
ReceiveHTTPMemory() with the #PB_HTTP_Asynchronous flag set: Address of the memory area where the received data was stored. With MemorySize() the amount of received data can be determined then.
Remarks
The value #PB_HTTP_Aborted will be returned by HTTPProgress().
See Also
HTTPProgress(), AbortHTTP()
Supported OS
All