[Mono-dev] HttpListener and basic auth

Maciej Paszta paszczi at go2.pl
Tue Apr 1 11:23:11 EDT 2008


Hello Guys,

I'm developing standalone service provider that uses HttpListener to  
serve appropriate requests. I'm having difficulty using Basic  
Authentication (not to say that it doesn't work at all). I'm using  
Mono 1.2.6 and the following testcase was performed on Windows, MacOS  
and Linux:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: Program.cs
Type: application/octet-stream
Size: 2138 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080401/33bee5ac/attachment.obj 
-------------- next part --------------




The expected result is that browser shows login window when one can  
enter username and password. Unfortunately it doesn't. Method  
AuthenticationSelector is not called at all and the program throws  
NullReference exception in line 52. The following code was tested  
on .NET 2.0 and there it works as supposed.

Best regards,
Maciej Paszta 


More information about the Mono-devel-list mailing list