skip to Main Content

i can’t use post with php on AWS Linux. i changed enable_post_data_reading=On and post_max_size=8M, but i still can’t use post data. Where could it be deactivated ?
I checked the php code on an other server and there the post data are not null.

2

Answers


  1. Chosen as BEST ANSWER

    i found the reason, and it's simple, but maybe anybody have the same problem, the action url was wrong action="http://...." instead of https://


  2. Have you accounted for this point noted in the PHP documentation for $_POST:

    An associative array of variables passed to the current script via the HTTP POST method when using application/x-www-form-urlencoded or multipart/form-data as the HTTP Content-Type in the request.

    Does the POST request you are submitting specify the above Content-Type header values?

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search