Using Ajax, I want to use the POST method with https://
example:
ajax.open("post","https://example.com/submit.php", true));
ajax.send("name=John");
What I want to know is: will the POST data (in this case, John) be encrypted as it is sent to submit.php?
----------------------------------------------
I would also like to know: should ajax.setRequestHeader("Content-type","application/x-www-form-urlencoded"); be placed between ajax.open() and ajax.send() if I use the POST method? Another site says to use it.