I want download pdf with WebClient
but I need send cookie with request
How can add cookie to WebClient
then download pdf
WebClient webClient = new WebClient();
webClient.DownloadFile("http://........", "C://2.pdf");
You can add cookies to your webClient.
webClient.Headers.Add(HttpRequestHeader.Cookie, "cookies");
webClient.DownloadFile("http://........", "C://2.pdf");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With