FtpClient: Allow 'ftps://' protocol.
[GB.NET.CURL] * NEW: FtpClient: Allow 'ftps://' protocol.
This commit is contained in:
parent
4db9e5c07e
commit
6770894884
2 changed files with 18 additions and 2 deletions
|
@ -2,6 +2,22 @@
|
||||||
|
|
||||||
Public Sub Main()
|
Public Sub Main()
|
||||||
|
|
||||||
Print HttpClient.Download("https://www.w3schools.com/cssref/")
|
'Print HttpClient.Download("https://www.w3schools.com/cssref/")
|
||||||
|
|
||||||
|
Dim ftptest As New FtpClient
|
||||||
|
Dim tmp As String
|
||||||
|
|
||||||
|
tmp = Temp()
|
||||||
|
ftptest.URL = "ftps://intersindical-clm.org"
|
||||||
|
ftptest.User = "benoit"
|
||||||
|
ftptest.Password = "vohW827!"
|
||||||
|
ftptest.SSL.VerifyHost = True
|
||||||
|
ftptest.SSL.VerifyPeer = False
|
||||||
|
ftptest.debug = True
|
||||||
|
ftptest.Async = False
|
||||||
|
ftptest.get(tmp)
|
||||||
|
If ftptest.ErrorText > "" Then
|
||||||
|
Print "Connection failed"
|
||||||
|
Endif
|
||||||
|
|
||||||
End
|
End
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#include "gbcurl.h"
|
#include "gbcurl.h"
|
||||||
#include "CCurl.h"
|
#include "CCurl.h"
|
||||||
|
|
||||||
static char *_protocols[] = { "ftp://", "http://", "https://", NULL };
|
static char *_protocols[] = { "ftp://", "ftps://", "http://", "https://", NULL };
|
||||||
|
|
||||||
static void warning(const char *msg)
|
static void warning(const char *msg)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue