* FtpWebRequest.cs: adds support for ftp multiline results, fixes
#333978
svn path=/trunk/mcs/; revision=88460
+2007-10-30 Jerome Haltom (wasabi@larvalstage.net)
+
+ * FtpWebRequest.cs: adds support for ftp multiline results, fixes
+ #333978
+
2007-10-27 Miguel de Icaza <miguel@novell.com>
* HttpListener.cs: Remove more trigger-happy disposed=true from
if (responseString.Length < 4 || responseString [3] != '-')
return new FtpStatus ((FtpStatusCode) code, responseString);
+
+ if (responseString [3] == '-') {
+ string line = null;
+ do {
+ line = controlReader.ReadLine();
+ responseString += Environment.NewLine + line;
+ } while (line.Length < 3 || (line [3] != ' ' && line.Substring (0, 3) != codeString));
+ return new FtpStatus ((FtpStatusCode) code, responseString);
+ }
+
+ return new FtpStatus (FtpStatusCode.ServiceNotAvailable, "Invalid response from server");
}
}