R
R
ruboss2016-04-25 23:43:45
PHP
ruboss, 2016-04-25 23:43:45

Maximum string length passed through ajax javascript / php?

Hello!

I send logs about strange errors from the client side - via ajax requests.
Everything works fine, from the javascript side it shows that all data is sent (POST).
Only a part of them, about 2000 characters, reaches the server, but no longer gives ...
Set max_post_size & max_upload_size equal to 100M - did not help
What could be the problem? Why is the data truncated, perhaps it's in the Apache or PHP settings?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel K, 2016-04-26
@ruboss

Does sending and processing fit into the script execution limit?
Is there enough memory (memory_limit)?
nginx server or apache?
Are you passing all the data through one variable or through many small ones?
Look at file_get_contents('php://input') there is the entire request before processing

S
samizdam, 2016-04-25
@samizdam

Mmm, EMNP, the Apache, if the body length was exceeded, would have cursed with a mistake.
Is the data exactly in the body being sent and not in the query string? Judging by the trimmed length, this looks more like a GET constraint.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question