我收到502错误,应该是一个简单的请求..
WebClient webClient = new WebClient();
SourceURL = string.Format(@"ftp://{0}/{1}", "ftp.cmegroup.com", "settle/nymex_option.csv"); //used field names ... but these are the values
webclient.Credentials = new NetworkCredential(@"anonymous", @"anonymous@anonymous.com");
webClient.DownloadFile(new Uri(SourceURL), "c:\temp\temp.dat");
我通过fiddler捕获了传出请求,在RAW检查器中看起来像这样:
GET ftp://anonymous:anonymous%40anonymous.com@ftp.cmegroup.com/settle/nymex_option.csv HTTP/1.1
Host: ftp.cmegroup.com
Proxy-Connection: Keep-Alive
寻找关于从哪里开始查找正在发生的事情的想法......
答案 0 :(得分:0)