Via Cà Matta 2 - Peschiera Borromeo (MI)
+39 02 00704272

Delphi NetHttpClient Basic Auth

Digital solution partner

Delphi NetHttpClient Basic Auth

First method:


Second one:



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: