I'm working at an application which uses Indy's TIdHTTP
component.
I send a request to my HTTP server, and it sends back a report. But, when the report is too long, I get this error:
Connection Closed Gracefully
Here is a part of my code:
procedure TdmAthlos.HttpClientAuthorization(Sender: TObject; Authentication: TIdAuthentication; var Handled: Boolean);
begin
HttpClient.Socket.Host := fOptiuni.edIP.Text;
HttpClient.Request.BasicAuthentication := True;
HttpClient.Request.Authentication.Username := fOptiuni.edUsername.Text;
HttpClient.Request.Authentication.Password := fOptiuni.edPassword.Text;
end;
procedure TdmAthlos.HttpClientConnected(Sender: TObject);
begin
HttpClient.Socket.Binding.SetKeepAliveValues(True, 1500, 1000);
end;