Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FTP with https
Message
From
12/04/2011 10:52:26
 
 
To
12/04/2011 10:18:00
General information
Forum:
ASP.NET
Category:
Other
Title:
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01507005
Message ID:
01507011
Views:
73
This message has been marked as the solution to the initial question of the thread.
>If I have this code to use the FTP protocol to upload a file:
>
>
>                ' URI
>                lcURI = "ftp://" + cHost + lcPort + "/" + lcDrive + cRemoteDirectory + "/" + cRemoteFile
>
>                ' FTP setup
>                loFtpWebRequest = System.Net.FtpWebRequest.Create(New Uri(lcURI))
>                loFtpWebRequest.Credentials = New System.Net.NetworkCredential(cUsername, cPassword)
>                loFtpWebRequest.KeepAlive = False
>                loFtpWebRequest.Method = System.Net.WebRequestMethods.Ftp.UploadFile
>                loFtpWebRequest.UseBinary = True
>                loFtpWebRequest.ContentLength = lnFileLength
>
>
>What kind of adjustements will be required to support an FTP server access which would use a certificate?

IIRC it's just a matter of adding the certificate to the webrequest.ClientCertificates collection and setting EnableSsl to true ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform