How can I do digest authentication with HttpWebRequest?

前端 未结 4 1851
一整个雨季
一整个雨季 2020-12-08 21:08

Various articles (1, 2) I discovered make this look easy enough:

WebRequest request = HttpWebRequest.Create(url);

var credentialCache = new CredentialCache(         


        
4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-08 21:44

    I think the second URL points to dynamic page and you should first call it using GET to get the HTML and then to download it. No experience in this field though.

提交回复
热议问题