FtpWebRequest: URI prefix not recognized (with sftp)

I am trying to upload a file to an FTP server. FTP server address sftp://xxx.xx.xx.xx:xx

. When I try to do with it FtpWebRequest

. He throws out NotSupportedException

which reads:

The URI prefix is ​​not recognized.

code:

FtpWebRequest request = (FtpWebRequest)WebRequest.Create("sftp://xxx.xx.xx.xx:xx");

      

+3
c # uri ftp webrequest


source to share


No one has answered this question yet

See similar questions:

102
SFTP Libraries for .NET

or similar:

4193
What is the difference between URI, URL and URN?
652
How do I set the Content-Type header for an HttpClient request?
197
How do I get a file from a server via SFTP?
fourteen
"The requested URI is not valid" when uploading with FTPWebRequest
3
Ftps: // URI prefix not recognized FtpWebRequest
1
C # .Net Compact Framework 3.5 FtpWebRequest Windows Mobile 6
0
Upload FTP binary
0
How to find the correct URI to upload a file via FTP
0
FtpWebRequest does not recognize URI
0
Silverlight WebRequest fails with "URI prefix not recognized"



All Articles
Loading...
X
Show
Funny
Dev
Pics