Sorry if its not the correct category to post in.
I am trying to download a dynamically generated report.csv from a website link which requires login to get it downloaded.
I tried by logging in through WebBrowser Control and navigating it to report's link but it shows "File Download" dialog as I want it to download silently knowing the downloaded location. Not sure if there is a proper to do it beside WebClient DownloadFile method because for some reason I didn't find any luck transferring sessions/cookies using following code and instead of that report it downloads login page.
Have also tried HttpWebRequest and it also downloads login.asp
Any idea how I can get this issue resolved?
Thanks in Advance
I am trying to download a dynamically generated report.csv from a website link which requires login to get it downloaded.
I tried by logging in through WebBrowser Control and navigating it to report's link but it shows "File Download" dialog as I want it to download silently knowing the downloaded location. Not sure if there is a proper to do it beside WebClient DownloadFile method because for some reason I didn't find any luck transferring sessions/cookies using following code and instead of that report it downloads login page.
VB.NET:
myWebClient.Headers.Add(HttpRequestHeader.Cookie, WebBrowser1.Document.Cookie)
Have also tried HttpWebRequest and it also downloads login.asp
Any idea how I can get this issue resolved?
Thanks in Advance