Digest Authentication using WebRequest
Dim myCache As New CredentialCache()
Dim request As Net.HttpWebRequest = Nothing
Dim response As HttpWebResponse = Nothing
Dim sURL as string = "http://www.xxx.com/cgi-bin/fwcamimg.cgi?FwModId=0&PortId=0&FwCgiVer=0x0001"
request = CType(WebRequest.Create(sURL), HttpWebRequest)
request.Timeout = 30000
request.Method = "GET"
request.PreAuthenticate = True
myCache.Add(New Uri(sURL), "Digest", New Net.NetworkCredential(m_UserName, m_UserPass))
request.Credentials = myCache
response = CType(request.GetResponse(), HttpWebResponse)
Whenever i try to run this code in .Net CF 2 SP2 , it throw exception of
"The response did not contain an end of entity mark."
Can anybody help or .NetCF 2 SP 2 not support http digest authentication because it is working under normal .Net program which i wrote to test it...
Thanks
Jason

