Questions tagged [ftpwebrequest]

FtpWebRequest is a concrete class for .NET Framework applications that provides an FTP-specific implementation of the abstract WebRequest class. Related tag: [webrequest].

The FtpWebRequest class provides an FTP-specific implementation of the WebRequest class.
Implements a File Transfer Protocol (FTP) client.

MSDN documentation for FtpWebRequest.

612 questions
0
votes
1 answer

How to navigate to a sub directory through a proxy with FTPWebRequest

I am currently trying to log on to a ftp server via an ftp proxy. Using the following snippet async { let r = FtpWebRequest.Create("ftp://") :?> FtpWebRequest r.Method <-…
Colin Bull
  • 959
  • 7
  • 15
0
votes
1 answer

vb.net Ftp Client - get ftp welcome message (and other messages from FTP Server)

This is my first message here. I noob on programming and I need some help. I have created a custom ftp application. I'm able to login and download files from the server using ftpwebrequest method however I can't find the way to read and display…
0
votes
1 answer

How to make this FtpWebRequest code faster?

I've written this to check whether the filename in a table column exists on ftp server directory if it exists then update (using update query) the column Isexists with value 1 else keep as it is. I'm using DataTable to read each row (filename) then…
Vishwanath Dalvi
  • 35,388
  • 41
  • 123
  • 155
0
votes
1 answer

C# - Missed file transfers with multiple FtpWebRequest using BackgroundWorker

I have a bunch of files that I am transferring to a single FTP server using C# with the FtpWebRequest object wrapped with a BackgroundWorker. This is a one-to-one relationship. So for every FtpWebRequest there is one BackgroundWorker doing the job.…
Kashif
  • 865
  • 2
  • 12
  • 33
0
votes
0 answers

ftpwebrequest works on Windows 7 not on Windows Server

So I am connecting to a z/OS ftp server. I am using the code below to try and download a file using Powershell 2.0. This code works on Windows 7, but on either Windows Server 2003 or Windows Server 2008 R2, I get an…
Bitfiddler
  • 3,942
  • 7
  • 36
  • 51
0
votes
3 answers

Web Service: Allow only one thread to perform at a time

Business case: I have a ASMX web service that copies/deletes/downloads files from some remote directory. My WebMethod creates an instance of the business class that performs all these operations. In case of downloading, I check which file is the…
Learner
  • 4,661
  • 9
  • 56
  • 102
0
votes
1 answer

Downloading oldest file from Linux FTP server and Windows FTP server

I want to download the oldest file from the directory on the FTP server. I am connecting to the FTP server using FtpWebrequest to get the list of files in the directory. I use WebRequestMethods.Ftp.ListDirectoryDetails to do so. Once I know the…
Learner
  • 4,661
  • 9
  • 56
  • 102
0
votes
1 answer

FtpWebRequest Server Error 550 When Trying to Create Folder

I've been trying to finish up a web scraper for a website of mine and have hit a stumbling block on the folder creation for image storage My code looks like this: //ftpUser and ftpPass are set at the head of the class FtpWebRequest lrgRequest =…
BarryH1987
  • 65
  • 12
0
votes
2 answers

using regex to parse a file from a ftpwebrequest

I am reading data from a vendor via an ftpwebrequest in c#. Thus the data will be in a string format line by line e.g 0123030014030300123003120312030203013003104234923942348 I need to parse this data into the appropriate fields so I can then…
Ryder
  • 281
  • 1
  • 4
  • 5
0
votes
1 answer

Why does my ListDirectory ftp-request throw an exception

I have following code: var listDirectoryFtpRequest = (FtpWebRequest) WebRequest.Create(directoryUri); listDirectoryFtpRequest.Method = WebRequestMethods.Ftp.ListDirectory; listDirectoryFtpRequest.Credentials = /* my credentials…
user57508
0
votes
1 answer

ASP.NET C# search for files on ftp (better code)

Hoping I explain this like I am thinking I have a web app which has products, from a list of suppliers. e.g. www.example.com.au/Browse.aspx?SupplierID=XYZ displays products for XYZ suppliers only. This then goes to the details page…
praveensewak
  • 114
  • 1
  • 6
0
votes
1 answer

Download files from a server

I am trying to get a list of files on a server CODE: string ftpUserID = "user"; string ftpPassword = "password"; string ftpServerIP = "192.###.###.###"; string remoteDirectory = @"\Update\UpdateTest"; string localDirectory =…
Noelle
  • 772
  • 9
  • 18
  • 44
0
votes
1 answer

Is greeting or handshake required when FTP data connection established?

I'm implementing a simple FTP server. When debugging, I try to use FileZilla client to connet my server. The request and response pattern found in the command panel is listed below: GREETING: 220 (FTP v1.0) REQUEST: USER *** RESPONS: 331…
Summer_More_More_Tea
  • 12,740
  • 12
  • 51
  • 83
-1
votes
1 answer

Accessing file from FTP in VB.NET - The remote server returned an error: (550) File unavailable (e.g., file not found, no access)

I am trying to use FTPWebRequest Rename method, below is my code snippet. Dim str1 As String = "ftp://slsdevvs01.am.cdkgroup.net/%2fDataTrans/%2f" Dim str2 As String = "Archive/Outbound/" Dim str3 As String = "CDK_IS_20220603_092921.CSV" Dim…
ns046
  • 41
  • 5
-1
votes
1 answer

When calling FtpWebRequest.DownloadFile after FtpWebRequest.UploadFile why am I getting an exception?

I have two methods (C# 4.8): one that uploads a file to a server directory using FTP, and one that downloads a file from a server using FTP. Each of these work fine independently. However, when I call the UploadFile(...) method followed by the…
1 2 3
40
41