Answer the question
In order to leave comments, you need to log in
Why doesn't the web server return the entire response?
For some reason, the server does not return a complete response.
Those. the script is being executed. At the end "echo $response;". The output should be full-fledged JSON, but I get truncated text.
If you do "file_put_contents('response.log', $response)" right before echo, then the file will contain the required full-fledged JSON.
nginx web server.
Answer the question
In order to leave comments, you need to log in
The problem was that the /var/lib/nginx directory was not writable. Changed the owner to nginx and everything worked out.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question