equivalent customHTTPProtocol in xamarin

122 views Asked by At

I want build app to make https request by using client certificate and show content in UIWebView.

I have an research, and i can do this with customHTTPProtocol in Object C. But i want build this app using xamarin.

I don't know how to do this in xamarin.

2

There are 2 answers

0
Yksh On

Refer this it may help you sometimes :Org.Apache.Http.Protocol

You can also make a try with System.Net.Http

0
AzrimZ On

Your web service needs to be configured to use https. And on your client it is enough to use the System.Net.Http library like this:

using (var client = new HttpClient())
{
    var response = await client.GetAsync(new Uri(url));                 
}

There is a bunch of documentation about this: https://msdn.microsoft.com/en-us/library/system.net.http.httpclient(v=vs.118).aspx