I have a very simple script for logging in a user and it works great in http on my stand alone build.
I am about to purchase an SSL certificate and have no experience of working with SSL and https.
What changes would I need to make to the script below in order to work with https?
var phpURL: String = "http://www.mywebsite.com/phpscripts/login.php";
var form = new WWWForm();
form.AddField("username", username);
form.AddField("password", password);
var w = WWW(phpURL, form);
yield w;
well, NOTHING other than having a website that supports SSL ;)
– Benproductions1If I understand correctly, this approach will appear to work, but will not enforce that the site has a valid SSL certificate--disappointingly. At least, this appears to be what's happening in my project currently.
– bitbutter@bitbutter You are correct, SSL certificates are not checked for validity.
– Benproductions1New answer [here][1] using HttpWebRequest which supports authentication, and control over accepted certificates. [1]: http://answers.unity3d.com/questions/1226915/post-a-form-over-https.html
– DemSec