Web 客户端 FTP / 502 错误
WebClient FTP / 502 Error
我收到一个 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
正在寻找关于从哪里开始了解正在发生的事情的想法....
我收到一个 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
正在寻找关于从哪里开始了解正在发生的事情的想法....