php - Problem with form upload https protocol
给我你的怀抱
给我你的怀抱 2017-07-03 11:40:54
0
2
971

The action in the form upload is obviously the path of the https protocol. After submitting, f12 checked the network and found that it was the http protocol, so the request always failed. I don’t know what happened

给我你的怀抱
给我你的怀抱

reply all (2)
三叔

Generally not, unless your server redirectshttpstohttp

    代言

    The path analysis of the website is divided into absolute path and relative path.

    When there is a specified protocol, it is an absolute path: https://xxx or //xxx.

    When using an absolute path, the protocol specified in the absolute path is used. When using relative paths use the protocol inherited from the parent.

    So for your problem, you specified the protocol, which is an absolute path, so your problem will not occur. The idea is the same as above, you may redirect https to http.

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!