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 Buying apps with different AppleID than one used to buy OS X Lion
- Answer How do I get rid of browsing history. I've gone to tools then checked all choices but three sites I want to delete are still there. I'm using windows vista.
- Answer Whilst doing system restore ths screen has frozen for some hours at "System Restore is restoring the registry" What do I do now?
- Answer cant find lifecam 2.0 webcam on any product list
- Answer How to unattend join domain in Windows 8 RTM