[SOLVED] API 400 error Username required Password required

Issue I am sending JSON data to external API as following : Dim url = "https://********" Dim _httpClient = New HttpClient() _httpClient.DefaultRequestHeaders.Authorization = New AuthenticationHeaderValue("MyUsername", "MyPassword") Using content = New StringContent(json, System.Text.Encoding.UTF8, "application/json") Dim result As HttpResponseMessage = _httpClient.PostAsync(url, content).Result

Continue reading