HTTP Server Authentication

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

HTTP Server Authentication

跳至解决方案
1,594 次查看
pbanta
Contributor IV

I'm trying to get Basic Authentication working with MQX 3.8.1.  I followed the advice from HTTP Server Authentication and I'm getting a response header that contains the following:

WWW-Authenticate:Basic realm="test"

Server:MQX HTTP - Freescale Embedded Web Server

Content-Type:text/html

Connection:close

I'm using Firefox and it pops the authentication dialog box.  I enter the username and password and click Ok and the authentication dialog appears again with the username and password fields empty.

Assuming the page I'm trying to load is index.html, do I have to put anything in the page header for basic authentication?  I thought the browser would be sending the a request header with the username:password base64 encoded but I don't see it.

Thanks in advance for any advice.

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
1,069 次查看
pbanta
Contributor IV

The default value for HTTPDCFG_DEF_AUTH_LEN is 16.  That was too small.  I increased the size and the authorization is now working.

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,070 次查看
pbanta
Contributor IV

The default value for HTTPDCFG_DEF_AUTH_LEN is 16.  That was too small.  I increased the size and the authorization is now working.

0 项奖励
回复