search

Home  >  Q&A  >  body text

php - Problem with form upload https protocol

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

给我你的怀抱给我你的怀抱2807 days ago1141

reply all(2)I'll reply

  • 三叔

    三叔2017-07-03 11:42:54

    Generally not, unless your server redirects https to http

    reply
    0
  • 代言

    代言2017-07-03 11:42:54

    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.

    reply
    0
  • Cancelreply