You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.MD
+21-4Lines changed: 21 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# FTP/SFTP/FTPS Class
2
2
Using cURL - providing an easy to use wrapper
3
3
4
-
## Introduktion
4
+
## Introduction
5
5
cURL is a standard tool to access files via many different protocols and is preinstalled on macOS and Windows (in Windows 10, Windows 11, Windows Server 2019 and 2022).
6
6
7
7
The preinstalled cURL version supports FTP and FTPS. By installing "your" own version SFTP will be supported additionally.
@@ -29,7 +29,7 @@ If ($result.success)
29
29
End if
30
30
```
31
31
32
-
# Feature set
32
+
# Feature overview
33
33
- Upload
34
34
- Download
35
35
- Directory Listing
@@ -38,11 +38,27 @@ End if
38
38
39
39
# Installation
40
40
41
-
Copy class
41
+
Copy class methods:
42
+
- FileTansfer.4DM
43
+
- SytemWorkerProperties.4dm
44
+
and Project Method ErrorHandler.4dm
45
+
If you already have a silent ErrorHandler method (no output, just to prevent an error message displayed on screen, error handled by code), just use your existing one.
46
+
47
+
Method ProgressCallback.4dm can be used as example how to create a progress bar - if needed.
48
+
49
+
Copy this 2-4 files into your project, done.
42
50
43
51
# Full documentation
44
52
45
53
54
+
install curl for sftp
55
+
to accept certificate, it needs to be in known_hosts
56
+
to do so, on this computer, use terminal/console and enter once
57
+
ssh name@host
58
+
enter password
59
+
-> added to local_host
60
+
61
+
from this moment, curl will accept this certificate
46
62
47
63
To do:
48
64
@@ -59,6 +75,8 @@ To do:
59
75
60
76
61
77
Examples for setCurlPrefix
78
+
79
+
ssl cipers, certificate files
62
80
63
81
--limit-rate <speed>
64
82
@@ -109,4 +127,3 @@ If this option is used several times, the last one will be used.
109
127
--retry-max-time (total time before it's considered failed)
0 commit comments