locked
HttpClient doesn't work with Https RRS feed

  • Question

  • User353417 posted

    Hi, I have this code in my PCL app that cause me a problem:

    ``` using System.Net.Http; using ModernHttpClient;

    ...

    HttpClient httpClient = new HttpClient(new NativeMessageHandler()); string json = await httpClient.GetStringAsync("myurlhere");
    ``` This code work great with Http, but when I try with Https it crash with this message an unhandled exception occurred. I pass all day yesterday searching for this and I always find that with ModernHttpClient is the right way for Https but it doesn't work for me. I also set (in Android Manifest): HttpClient Implementation = Android SSL/TLS Implementation = TLS 1.2+ native

    Anyone can help me?

    Tuesday, February 6, 2018 10:47 AM

Answers

  • User353417 posted

    Ok, I my case the problem was server side. Now all work well!

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, February 12, 2018 2:17 PM