I'm trying to access certain information from my database, but the following error is occurring:
Excerpt where debugging occurs:
IdHTTP := TIdHTTP.Create(nil);
IdHTTP.Port := 80;
IdHTTP.Connect(-1);
IdHTTP.Request.BasicAuthentication := true;
The Connect
of IdHTTP
only works if you already have the address. Remove this line and add it only if you enter the URL address to connect.