2015-06-03 52 views
1

我recieving 502錯誤,從什麼應該是一個簡單的請求..WebClient的FTP/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", @"[email protected]"); 
webClient.DownloadFile(new Uri(SourceURL), "c:\temp\temp.dat"); 

我捕獲通過小提琴手發出的請求,它看起來像這樣在RAW檢查:

GET ftp://anonymous:anonymous%[email protected]/settle/nymex_option.csv HTTP/1.1 
Host: ftp.cmegroup.com 
Proxy-Connection: Keep-Alive 

尋找想法,從哪裏開始就找出到底是怎麼回事....

回答