Basic Authentication

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
 
G

Guest

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
 
S

Spiff

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..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top