C
C#10mo ago
Poller

UWP Digest credentials not supported?

i have the following code in my xamarin.forms project. (yeah i know its deprecated, but thats what i am stuck now) - as it seems, digest or how i do it is not working right now(see exception screenshot). what is the correct way to do this in uwp here?
No description
No description
3 Replies
HY
HY10mo ago
HI You can try using HttpClient instead of System.Net.HttpWebRequest class. Please look at an example of how to use HttpClient to make a request with Credentials: var handler = new HttpClientHandler { Credentials = new NetworkCredential("username", "password"); } var client = new HttpClient(handler); var response = await client.GetAsync("https..."); if (response.IsSuccessStatusCode){ var content = await response.Content.ReadAsStringAsync(); } Hope this helpful for you If you want, I can go on with Xamarin development I have worked for 8+ years with Xamarin development Hope your reply Thanks
Poller
PollerOP10mo ago
This is HttpClient. this describes basic authentication and not a digest one. this is adversment and not something you should do on this server. also, you did not even read my post properly, so i dont think a work together is a good fit.
HY
HY10mo ago
I see hope your success Bye
Want results from more Discord servers?
Add your server