There are two ways of handing of errors in the HTTP Client component.
1. You can set the SilentHTTP property to True and analyze the StatusCode property. This method allows you to get the server response in the provided destination stream:
clHttp.SilentHTTP := True; clHttp.Get('http....', destination); if (clHttp.StatusCode >= 400) then //the destination parameter contains the server response
2. You can use the try-except blocks to handle the exception:
try clHttp.Get('http....', destination); except on E: EclHttpError do begin E.ErrorCode... E.ResponseText... end; on E: EclSocketError do begin E.ErrorCode... end; on E: Exception do begin //...other errors end; end;
Trouble logging in? Simply enter your email address OR username in order to reset your password.
For faster and more reliable delivery, add admin@clevercomponents.com to your trusted senders list in your email software.