Via Cà Matta 2 - Peschiera Borromeo (MI)
+39 02 00704272
info@synaptica.info

Delphi NetHttpClient Basic Auth

Digital solution partner

Delphi NetHttpClient Basic Auth

First method:

 

Second one:

 

PreemptiveAuthentication:

Generally, when the server receives the request, it replies that it needs a user and password to access it, so your basic authentication works. There are cases in which the server is configured to accept only calls that in the first instance send the authentication data. To force the NetHttpClient class to work this way: