L
L
Laid2019-06-15 10:56:41
PHP
Laid, 2019-06-15 10:56:41

Why did you stop sending data after moving to HTTPS?

There is a form:

<form method="POST" enctype="multipart/form-data" action="/upload.php">

on HTTP everything worked correctly and input data was transferred to upload.php. After moving to HTTPS - it stopped. $_POST is empty, as is $_FILES.
$_SERVER part:
[REDIRECT_HTTPS] => on
    [REDIRECT_HANDLER] => application/x-httpd-php5
    [REDIRECT_STATUS] => 200
    [HTTPS] => on


My hypothesis is that there is a redirect to https and because of this the data is overwritten. I tried to specify the HTTPS protocol in the action, all the same, the data is not transmitted. Tell me, please, what needs to be corrected / done in order to receive form data on HTTPS on upload.php?

headers:
Request URL: https://*.pro/upload.php
Request Method: POST
Status Code: 200 OK
Remote Address: 176.31.240.140:443
Referrer Policy: no-referrer-when-downgrade
Connection: close
Content-Encoding: gzip
Content-Length: 1015
Content-Type: text/html; charset=UTF-8
Date: Sat, 15 Jun 2019 11:57:34 GMT
Server: Apache
Strict-Transport-Security: max-age=31536000; preload
Vary: Accept-Encoding
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3
Accept-Encoding: gzip, deflate, br
Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7
Cache-Control: max-age=0
Connection: keep-alive
Content-Length: 16000246
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarybcyYhdBMLj8E3z3u
Cookie: _ga=GA1.2.1820755521.1559482482
Host: *.pro
Origin: https://*.pro
Referer: https://*.pro/
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.90 Safari/537.36

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Laid, 2019-06-15
@stoik_kpd

transferred to a new user on the server and forgot about post_max_size -_-

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question