Hi,
So apparently the API I am going to connect to needs HTTPS and not HTTP. I am new to Xamarin and have so far only found documentation for HTTP and not HTTPS. The app will run primarily on Android and later on iOS.
Please help me out on how I can do this.
Thank you very much in advance for helping out.
All our service calls are HTTPS. Just use HTTPClient like you normally would (our app currently consumes 2 restful endpoints, both are HTTPS). The app runs on Android, iOS & UWP
https://www.nuget.org/packages/Microsoft.Net.Http
Just be careful if the HTTPS service supports TLS 1.1 or 1.2, there is more info on that here
https://developer.xamarin.com/guides/cross-platform/transport-layer-security/
Answers
Same thing ,You can use HttpClient for both.
Thanks mang. I wish it was clearer in the documentation, though.
@Quakeulf
All our service calls are HTTPS. Just use HTTPClient like you normally would (our app currently consumes 2 restful endpoints, both are HTTPS). The app runs on Android, iOS & UWP
https://www.nuget.org/packages/Microsoft.Net.Http
Just be careful if the HTTPS service supports TLS 1.1 or 1.2, there is more info on that here
https://developer.xamarin.com/guides/cross-platform/transport-layer-security/
Thank you too, mang. I'm already using System.Net.Http, but should I be using Microsoft instead or is there no difference?
HTTPS will be fine on both.
Depends if your PCL only, what profile your targeting, I use Microsoft.Net.Http as I only use PCL (at the moment) and I don't use shared or target .NETStandard yet.