|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
FtpWebRequestI'd like to implement some FTP Features in my Project, use VB.NET (VS2005/.NET2.0) and I have noticed a very big problem: I use the Class System.Net.FtpWebRequest and it's obviously not possible to change the Current Directory within a FTP-Session. The static Method FtpWebRequest.Create(Url or Uri) creates a Request, and then I'm "caged" in the Folder specified by the Url. Though the FtpWebRequest.Method does accept Strings, but all my attempts were in vain, to set the Method to a CD or CWD Command. Why? FtpWebRequest.Method is the String passed to the FTP-Server. Validating this String, before sending to the Server doesn't make sense. Especially the predefined Commands in WebRequestMethods.Ftp are far from a complete List of all supported FTP-Commands. Oh man - some things could be so easy, but... Why validating this String - that's the job of the Server - or not? Why, why, why :-(( Best regards and Greetings, Peter PS: .NET2.0 is although a Great Throw (or however it's called in English :) |
|||||||||||||||||||||||