해결책을 찾기 위해 1 주일 만에 인터넷 검색을 시도한 결과 매우 간단했습니다.
나는 HTTPS URL에서 파일을 자동으로 다운로드하고 웹 브라우저 컨트롤을 사용하면됩니다.
1) 웹 브라우저 를 사용하여 로그인하십시오. 2)이 코드를 사용하여 다운로드하십시오.
//build de URL
string _url = "https://........."
//define a download file name and location
string _filename = @"C:\Users\John\Documents\somefile.pdf";
//create a webcliente
WebClient cliente = new WebClient();
//do some magic here (pass the webbrowser cokies to the webclient)
cliente.Headers.Add(HttpRequestHeader.Cookie, webBrowser1.Document.Cookie);
//and just download the file
cliente.DownloadFile(_urlpdf, _filename);
그것은 미래의 참조를 내 문제
늦은 대답을 해결'URLDownloadToCacheFile' [이 사용할 수있다 (http://stackoverflow.com/a/19025793/1768303). – Noseratio