Download image with link direct authen in C#
i want download image captcha code with link
http://www.vatgia.com/home/security_code.php?0.6400910824330888, but captcha code only just show when i login.
I download it using Web Client, but i'm not way to add request cookie login when download.
System.Net.WebClient wc = new System.Net.WebClient(); wc.Credentials = new System.Net.NetworkCredential("minhtrung3811", "Nguyen123"); //Authenticates to the website - Call it only if the image url needs authentication first wc.DownloadFile(url, "d:\\downloadedImage.jpg"); //Downloads the imageURL to the local file downloadedImage.jpg
Please help me?
No responses yet. Be the first one!
Can you answer these?
- Answer is there any way to use the old but very helpful "send to any folder" ex powertoys W95 with Win 8.1 ? or new version if exist. thanks
- Answer CD will not add to WMP library
- Answer How do you make a melee attack?
- Answer How do I connect my iPhone to my laptop wireless network to get Internet access?
- Answer Change Link with HTML Dropdown