- Home /
Question by
RichoDemus · Apr 03, 2016 at 10:23 PM ·
c#networkingnetworkwwwhttps
WWW with https resulting in SSL: couldn't create a context
Unity version: 5.1.0f3 Personal
OS: Linux/Xubuntu
I'm trying to send HTTP requests using the WWW class and have run into a snag with https This is my code:
private WWW www;
private bool printed = false;
void Start () {
var url = "https://google.com";
www = new WWW(url);
}
void Update () {
if(www != null && www.isDone && !printed){
if (!string.IsNullOrEmpty(www.error))
Debug.Log("Error: " + www.error);
else
Debug.Log("Received data: " + www.text);
printed = true;
}
}
I'm getting the error:
SSL: couldn't create a context: error:140A90F1:lib(20):func(169):reason(241)
If I switch from https to http it works just fine
Comment