-->
Page 3 of 3

Re: HTTP Authentication??

PostPosted: Tue Aug 23, 2016 10:19 pm
by Behrad B
Alma Korte wrote:Hi!
How did encrypting user/pwassword ?

if (auth == nil or auth ~= "dXNlcjpwYXNz")then --user:pass dXNlcjpwYXNz
client:send("HTTP/1.0 401 Authorization Required\r\nWWW-Authenticate: Basic realm=\"ESP8266 Web Server\"\r\n\r\n<h1>Unauthorized Access</h1>");
client:close();
return;
end



YES