Jump to content

FTP problems


Recommended Posts

What's the problem with this source?

#include <FTPEx.au3>

$server = 'ftp.uw.hu'
$username = 'sysclean'
$pass = 'c092b4c0'

$Open = _FTP_Open("myftp")
$Connect = _FTP_Connect($Open, $server, $username, $pass)

$Put = _FTP_FilePut($Connect, @ScriptDir & "\Test.txt", "\Test.txt")

$Ftpc = _FTP_Close($Open)

msgbox(0,"","Uploaded")

The password and the username is correct but It doesn't work. [Of course I will change the pass later]

Edited by Warning
Link to comment
Share on other sites

Hello Warning,

may be the servername, pwd or username is false. There is no connection possible to your server. i tried it with this skript in active and passive mode:

#include <FTPEx.au3>

$server = '******'
$username = '******'
$pass = '*******'
$FTPFile = "/_FTP_FilePut.au3"
$ULFile = @ScriptDir & "\_FTP_FilePut.au3"
$bModus = 0

$Open = _FTP_Open('MyFTP Control')
$bOpen = @error
If Not $bOpen Then
    $Conn = _FTP_Connect($Open, $server, $username, $pass,$bModus)
    $bCon = @error
    If Not $bCon Then
        If _FTP_FilePut($Conn, $ULFile,  $FTPFile) Then 
            MsgBox(0, "Upload", "erfolgreich")
            $Ftpc = _FTP_Close($Open)
        Else
            MsgBox(0, "Upload", "fehlgeschlagen")
            ConsoleWrite("Upload: " & $bCon & " " & @extended & @CRLF)
        EndIf
    Else
        MsgBox(0, "Connect", "fehlgeschalagen")
        ConsoleWrite("Connect: " & $bCon & " " & @extended & @CRLF)
    EndIf
Else
    MsgBox(0, "OPen", "fehlgeschalagen")
    ConsoleWrite("Open " & $bOpen & " " & @extended & @CRLF)
EndIf

also with FileZilla i cannt connect:

Status: Connecting to ftp.uw.hu ...
Status: Connected with ftp.uw.hu. Waiting for welcome message...
Error:  Timeout detected!
Error:  Unable to connect!
Status: Waiting to retry... (5 retries left)
Status: Connecting to ftp.uw.hu ...
Status: Connected with ftp.uw.hu. Waiting for welcome message...
Error:  Timeout detected!
Error:  Unable to connect!
Status: Waiting to retry... (4 retries left)
Status: Connecting to ftp.uw.hu ...
Status: Connected with ftp.uw.hu. Waiting for welcome message...
Error:  Timeout detected!
Error:  Unable to connect!
Status: Waiting to retry... (3 retries left)
Status: Connecting to ftp.uw.hu ...
Status: Connected with ftp.uw.hu. Waiting for welcome message...
Error:  Timeout detected!
Error:  Unable to connect!
Status: Waiting to retry... (2 retries left)
Status: Connecting to ftp.uw.hu ...
Status: Connected with ftp.uw.hu. Waiting for welcome message...
Error:  Timeout detected!
Error:  Unable to connect!
Status: Waiting to retry... (1 retry left)
Status: Connecting to ftp.uw.hu ...
Status: Connected with ftp.uw.hu. Waiting for welcome message...
Error:  Timeout detected!
Error:  Unable to connect!

mfg autoBert

Edited by AutoBert
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...