Hi - I am learning Apache/pod_perl with the 'Eagle' book, and am writing a mini HTTP server in perl as a learning aid. Everthing was going peachy untill I got to Authorization.
Thru my browser (I've used MS IE and Netscape on W2K and various Linux browsers) I request a page served by my server; the request lookes like (from my log): - GET / HTTP/1.1 - Accept: */* - Accept-Language: en-us - Accept-Encoding: gzip, deflate - User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705) - Host: 127.0.0.1:8223 - Connection: Keep-Alive I serve the following: - HTTP/1.1 401 Authorization Required - Date: Sat Jan 11 02:54:52 2003 - Server: BC_HTTP_PlayServer/0.0.1 (MSWin32) - WWW-Authenticate: Basic realm="WallyWorld" - Content-Length: 167 - Content-Type: text/html - - <html> - <head> - <title>Authorization Required</title> - </head> - <body> - <h1>Jeff, the instructional HTTP Server</h1> - <hr width="100%"></hr> - <p> - Wrong! - </p> - </body> - </html> All browsers seem to ignore the - WWW-Authenticate: Basic realm="WallyWorld" header line and just display the page instead of popping up the Authorization window and sending back the Authorize header line. If I put Authorization into a page served by Apache it works (of cource). I've read the RFP's again and again and I can't see what I'm missing. Can any HTTP experts help? Aloha => Beau. PS: Sorry if this seems OT, but it is in my mod_perl learning path!