When initiating an XmlHttpRequest POST connection
var http = new XMLHttpRequest();
http.open("POST", url, true);
Some suggest adding the following headers before sending the request:
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.setRequestHeader("Content-length", params.length);
http.setRequestHeader("Connection", "close");
Do these additional headers need to be included when using an Apache+PHP server? Surprisingly, it seems to work without them on my server.