trying to use WebClient to download a file, URL contains a port number
I am writing code which needs to download some files using a URL. I am using this type of code:
WebClient webClient = new WebClient;
webClient.DownloadFile(clipURL, destinationPath);
however the URLs that I need to download have ports specified in them eg. http://www.myurl.com:1010/path/file.doc
I'm getting an error on the download file command saying that URI formats are not supported. which is strange because a URL is just a certain type of URI. I have a feeling that the port number being in there is what is causing the problem, however it must be there. I'm communicating over a LAN with a web service listening on a certain port only. is there a workaround for this problem?
thanks!