Skip to content

Commit c7c9df7

Browse files
committed
Modify FTP/FTPS URL when user/password is given to alternative allowed syntax, so solve "curl: (6) Could not resolve host: " happening on some(??) servers/systems.
1 parent 8f8aa09 commit c7c9df7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Project/Sources/Classes/FileTransfer_curl.4dm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,10 @@ Function _parseFileListing($success : Object)
277277
Function _buildURL()->$url : Text
278278
Case of
279279
: ((This:C1470._protocol="ftps") | (This:C1470._protocol="ftp") | (This:C1470._protocol="ftp-ftps"))
280-
$url:="ftp://"
281280
If (This:C1470._user#"")
282-
$url+=This:C1470._user+":"+This:C1470._password+"@"
281+
$url:="--user \""+This:C1470._user+":"+This:C1470._password+"\" ftp://"
282+
Else
283+
$url:="ftp://"
283284
End if
284285
$url+=This:C1470._host
285286
Case of

0 commit comments

Comments
 (0)