Can I Use HTTP authorization in HTTPS protocol?
I mean I will use following code in PHP.
header("WWW-Authenticate: Basic realm=\"Admin authorization\"");
header("HTTP/1.0 401 Unauthorized");
and
echo $_SERVER["PHP_AUTH_USER"];
echo $_SERVER["PHP_AUTH_PW"];
Yes. HTTP is HTTP even if you put it through a secure tunnel.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.