Download image with link direct authen in C#Content on this page is from Stackoverflow
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?
View Local Answers... Can't find the answer to this question?
No answers yet.
Can you answer this question?
Download image with link direct authen in C#
Can you answer these?
- Answer extracting from livescores
- Answer Create SOAP service based on Client message in WCF and IIS
- Answer Creating .xsd and .xml with optional element (if - then)
- Answer json to xml java
- Answer Reverse preg_replace
- Answer Devise - After Sign In, Being Redirected to Naked URL, Not WWW
- Answer Solving three variables Diophantine equation in Python
- Answer Internal charater encoding of Java 7
- Answer Hartl rails tutorial
- Answer Check at once the boolean values from a set of variables