c# - Get File Names from Web directory - from Services -


Can you please tell me what I bring to a web directory from the file name on the service level. I have wrapper services, I am trying to get the file name inside it. I found no solution

If I understand correctly the question, since you too Not quite as easy as getting the FTP list:

  Using the system; Using System.IO; Using System.Net; Using System.Text; Namespace example. Sistmsknet {public class WebRequestGetExample {public static void Get object main () is used to communicate {// server FtpWebRequest request = (FtpWebRequest) WebRequest.Create ( "ftp://www.contoso.com/ "); request. Method = WebRequestMethods.Ftp.ListDirectoryDetails; // This example assumes that the FTP site uses anonymous logon. request. Credentials = new network credentials ( "anonymous", "Jane Doe." FtpWebResponse response = (FtpWebResponse) RequestkGetResponse (); stream reaction stream = response. Getresponsstrym (); Strymrider reader = new Strymreedr (responses); Console.WriteLine ( reader.ReadToEnd ()); Kansolkprkashlain ( "directory full, position {0}", feedback. status description); reader.Close (); response.Close ();}}}  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -