Quantcast
Channel: WCF, ASMX and other Web Services
Viewing all articles
Browse latest Browse all 555

Not able to download the content file - Getting Error: The proxy name could not be resolved: 'http'

$
0
0

I am trying to download the content file from specific URL. But, i'm  getting error.

below is my code : 

  DownloadURL = "http://servertest.mnet.comp.intranet:80/tm-rest/repos/contents/content";

                        // To get content from URL

                        WebClient client = new WebClient();
                        WebProxy wp = new WebProxy("http://servertest.mnet.comp.intranet",80);
                        wp.Credentials = new NetworkCredential("test1", "pass", "mnet.comp.intranet");
                        client.Proxy = wp;
                        client.DownloadFile(DownloadURL, "c:\\Content\\content.txt");

Error : The proxy name could not be resolved: 'http'

What is the error and how we could solve this problem...?


Viewing all articles
Browse latest Browse all 555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>