XMLHttpRequest POST data size -


Is there a size limit for the XHR post request? I am using POST method to save text data in MySQL using PHP script and the data has been disconnected. Firebug sends me the following message:

  ... The firebag request size limit is reached by firebug. ...  

My code is for sending this data:

  functionMHH (recordData) {xmlhttp = createXHR (); Var body = "q =" + encoder eConentant (record data); Xmlhttp.open ("POST", "insertRowData.php", true); Xmlhttp.setRequestHeader ("content-type", "app / x-www-form-urxed"); Xmlhttp.setRequestHeader ("content-length", body.length); Xmlhttp.setRequestHeader ("Connection", "Closed"); Xmlhttp.onreadystatechange = function () {if (xmlhttp.readyState == 4 & xmlhttp.status == 200} {//alert(xmlhttp.responseText); Warning ("Records saved successfully!")}}} Xmlhttp.send (body);}  

I think the only solution is dividing the data and XHR is making a line of requests, but I do not like it. Is there any other way?

There is no size limit in the XHR post, but you are sending data to PHP Are a size range Land;) create the following php-file and open it in the browser:

  & lt ;? Php phinfo (); ? & Gt;  

Now search for the variable "post_max_size", this variable limits the maximum data that can be sent to PHP (but it can be changed to php.ini)


Comments