Get “The remote server returned an error: (500) Syntax error, command unrecognized” when I try to run FtpWebRequest.GetRequestStream

后端 未结 1 834
青春惊慌失措
青春惊慌失措 2020-12-20 03:01

I have following code to send files to a FTP server.

function FtpUploader(
  [string]$uri,
  [string]$localeFile,
  [string]$user = \"ftp\",
  [string]$passw         


        
相关标签:
1条回答
  • 2020-12-20 03:59

    I solved it by using the following:

    $ftp.KeepAlive = $false
    
    0 讨论(0)
提交回复
热议问题