methodTsmCustomHTTPSClient.BeginUpload
function BeginUpload(const aMethod, aURL: string; const aHeaders: tHttpHeaders): iHttpUploadExchange; overload;
Starts a request whose body you then write through the returned iHttpUploadExchange (see there for the call sequence). Connects first when needed and returns without waiting for the response. Pass aContentLength (0..cHttpsMaxUploadLength) when the body length is known; it is sent as Content-Length. Omit it when it is not: HTTP/1.1 then sends the body chunked. A Content-Length in aHeaders must equal aContentLength, and raises without one; Transfer-Encoding, Connection, Keep-Alive, Proxy-Connection, Upgrade, Trailer and Host always raise. End every upload with a final write or Cancel: until then no other request can start on an HTTP/1.1 connection. Nothing is followed or resent: a redirect or any other status is simply the response.
function BeginUpload(const aMethod, aURL: string; const aHeaders: tHttpHeaders; aContentLength: Int64): iHttpUploadExchange; overload;
function BeginUpload(const aMethod, aURL: string; const aHeaders: tHttpHeaders; const aTrailerNames: array of string): iHttpUploadExchange; overload;
The same, with trailer fields after the body. aTrailerNames lists the fields you may send as trailers (sent as the Trailer field; an empty list is allowed). End with TrySendTrailers on the result's iHttpUploadTrailersExchange, or with an ordinary final TrySendBody, which sends no trailer fields. HTTP/1.1 then always sends the body chunked, even with aContentLength, which is still enforced.
function BeginUpload(const aMethod, aURL: string; const aHeaders: tHttpHeaders; aContentLength: Int64; const aTrailerNames: array of string): iHttpUploadExchange; overload;