Bonjour,
J'ai un problème sur une commande curl (incluse dans un script perl) mais en ligne de commande c'est pareil .. :
curl -T /tmp/message.txt -u user:mdp ftp://monsite/html/tmp/
Le site FTP distant est en actif, j'arrive à faire un upload avec Filezilla ! Par contre, la commande curl échoue avec l'erreur :
Je comprend pas pourquoi curl essaye le passive mode ?!
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 About to connect() to monsite port 21 * Trying xxx.yyy.zzz.aaa... connected * Connected to monsite (xxx.yyy.zzz.aaa.) port 21 < 220 Serveur monsite > USER user < 331 Password required for monsite.. > PASS password < 230 Bienvenue > PWD < 257 "/" is current directory. * Entry path is '/' > CWD html < 250 CWD command successful. > CWD tmp < 250 CWD command successful. > EPSV * Connect data stream passively < 500 EPSV not understood. * disabling EPSV usage > PASV < 227 Entering Passive Mode (0,0,0,0,238,98). * Trying 0.0.0.0... Connexion refusée * couldn't connect to host * Remembering we are in dir html/tmp/message.txt * Uploaded unaligned file size (0 out of 25 bytes) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connection #0 to host monsite left intact curl: (7) couldn't connect to host * Closing connection #0
J'ai parcouru le man et le manuel de curl => aucune options / indications pour forcer un mode . . .
Merci de votre aide !
![]()
Partager