Basic Authentication

  • Thread starter Thread starter Spiff
  • Start date Start date
S

Spiff

Greetings!

I have a web application with basic authentication and i need to read a
XML File from the server, to do so i need credentials. So I generate
network credential by using the data i get with
Request.Headers("Authorization").

But sometimes after the browser ask me for authentication, when i read
the Request.Headers("Authorization") it returns nothing - so i can't
read the XML file - but the browser don't ask me for authentication...

Does anyone know what could be? How can i resolve this problem?


Thanks,

Spiff
 
Have you configured your web.config file to deny un authorize access? doing
this will insure anonymous access to this folder, thus forcing the browser to
open up the Authentication dialog.
Hope this helps
 
Thanks,

Yes, I configured thw web.config to deny un authorize access. When I
open the application browser opens up the Authentication dialog, but
when I try to read Request.Headers("Authorization"), sometimes i can,
but other times it came nothig...

I can't make a pattern whenthis happen..
 
Back
Top