You are not logged in.
Pages: 1
I would call the naming of parameters "forceSocket" and "forceNotSocket" unfortunate. Maybe I'm the only one who had to look twice until I understood the source code.
/// retrieve the content of a web page, using the HTTP/1.1 protocol and GET method
// - this method will use a low-level THttpClientSock socket for plain http URI,
// or TWinHttp/TCurlHttp for any https URI
function HttpGet(const aUri: RawUtf8; const inHeaders: RawUtf8;
outHeaders: PRawUtf8 = nil; forceNotSocket: boolean = false;
outStatus: PInteger = nil; timeout: integer = 0; forceSocket: boolean = false;
ignoreTlsCertError: boolean = false): RawByteString; overload;
With best regards
Thomas
Offline
Pages: 1