Using HTTPS in Mono vs .Net

If anyone else is interested in connecting Unity to HTTPS URLs, you should know that Mono and .Net are built very differently in this respect.

Code that compiles and runs natively in .Net using HTTPWebRequest or WebClient will not work under Mono; reason being that by default MS Windows includes some basic X509 Certificates for handshaking with SSL, but Mono does not. To overcome this, you need to handle the error using System.Security.Cryptography.X509Certificates.

There is an article at go-mono.net:
Redirecting…

Hope this saves someone the day we wasted :slight_smile:

Cheers
Shaun.

httplistener also acts very differently.