Author: Rich dvc | Posted on: 9/16/2009 10:38:02 AM | Views : 718

I can download the unzip.zip file with this sample code. But I need to download a file from an ftp server. HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://www.tmk.com/ftp/vms-freeware/fileserv/unzip.zip");
HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
int tot = (int)resp.ContentLength; ... I tried modifying the code above as follows but I'm not getting anything

    FtpWebRequest req = (FtpWebRequest)WebRequest.Create("ftp://myftpserver/somedir/myfile.mp4");
    req.Credentials = new NetworkCredential("myuid", "mypwrd");
    FtpWebResponse resp = (FtpWebResponse)req.GetResponse();
    int tot = (int)r ...

Go to the complete details ...