HTTP Server Authentication

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

HTTP Server Authentication

ソリューションへジャンプ
1,595件の閲覧回数
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,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 件の賞賛
返信
1 返信
1,071件の閲覧回数
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 件の賞賛
返信