401 on HttpWebRequest in FIrefox

  • Thread starter Thread starter Ryan
  • Start date Start date
R

Ryan

Hello everyone,

I am using Windows authentication and I have set impersonate to true.

I am try to do the following and receive a 401 error in non-IE
browsers.

Dim objRequest As HttpWebRequest = CType(WebRequest.Create(strURL),
HttpWebRequest)
objRequest.Credentials = CredentialCache.DefaultCredentials

etc . . .

Is this expected? Firefox allows the users to login, but the
defaultcredentials does not seem to work. Is there a way around this or
something I am doing incorrectly?

In help is greatly appreciated!

Thanks and have a great day,
Ryan
 
yes. firefox is more security conscious then IE. with windows security it
does not pass a primary token to iis like IE does when its a local loopback.

note: if you hit your box from another machine with IE it will also fail.

-- bruce (sqlwork.com)
 
Back
Top