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?
3 Replies
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
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.
I see
hope your success
Bye