通过GET或POST进行AJAX请求?

I'm doing some AJAX requests that insert new records into a database via POST, to follow the REST methods.

However, from time to time I'm getting some errors on the server (using Apache & Django 1.5.5) saying that the post data could not be read. There are several questions talking about this on SO (e.g. IOError: request data read error). So, I'm wondering if changing the AJAX calls from POST to GET would be an "elegant solution" keeping in mind that they insert new data.

if you're adding new records in a database, a post method would be better. regarding the errors, check the parameter names. You can always check for consistency with the data being sent by logging them on the server side. that way you'll know that the ajax calls are working as expected.