I used Fiddler to find out what happens when I log in using a browser

Auth tab -
WWW-Authenticate Header is present: Negotiate
WWW-Authenticate Header is present: NTLM
therefore, although I was told that authentication is Basic, I need to use the following
CredentialCache credentialCache = new CredentialCache();
credentialCache.Add(new Uri("http://youruri"),"NTLM",new NetworkCredential(username, password));
using (var handler = new HttpClientHandler
{
Credentials = credentialCache
})
HttpClient - .
:
SQL Server