0

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"];
YouHoGeon
  • 405
  • 1
  • 3
  • 15

1 Answers1

0

Yes. HTTP is HTTP even if you put it through a secure tunnel.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335