Error trying to access certain bank information

1

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;
    
asked by anonymous 11.11.2016 / 14:43

1 answer

2

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.

    
16.11.2016 / 16:38