Problem mit FtpPutFile()
-
Hallo,
ich will ne Datei über FTP schicken. Hab die Verbindung auch schon aufgebaut, nur beim senden, über die Funktion FtpPutFile() bekommt er einen Fehler. Über GetLastError() bekomm ich die Fehlernummer (12003 mit Modul WININET), unter der steht:
Der Server lieferte erweiterte Informationen.
Was soll das heißen? Wie kann ich diese Informationen auswerten?
der Funktionsaufruf lautet
FtpPutFile(session,name,path,INTERNET_FLAG_TRANSFER_BINARY,NULL)
wobei session eine zu 100% erfolgreich geöffnete InternetSession ist.
Danke im Voraus
-
Hast du entsprechende Rechte auf dem FTP Server um was hochzuladen?
Existiert das Verzeichnis in das du etwas uploaden möchtest?Q168492 - PRB: FTP WinInet APIs Report Error 12003
http://support.microsoft.com/support/kb/articles/Q172/7/12.ASPFor additional information, please see the following article in the Microsoft Knowledge Base:
Q168492 PRB: FTP WinInet APIs Report Error 12003
This problem occurs when text returned by the FTP server is in a format that WinInet cannot parse correctly. You can work around this problem by using the FtpCommand function and sending a LIST command to the server. You could then either display the listing results in your application directly or parse the returned data yourself.
-
Aja, danke, wusste gar net, dass man die Fehler auch online nachschauen kann.
Vielen Dank für den Tipp
-
Oh nochwas, hier steht ja, ich kann das umgehen indem ich jeden befehl 'per Hand' dahin schicke. Weiß jemand zufällig, welche Befehle man da schicken muss? Ich denke die normale Funktion tuts nicht, weil das ein Linux Server is.
Danke für Antwort
[ Dieser Beitrag wurde am 29.10.2002 um 21:52 Uhr von Creon editiert. ]
-
Was meinst du "per Hand" und mit "weil das ein Linux Server is."?
Lies in der RFC 959 (File Transfer Protokoll; FTP) nach wie die Kommunikation zwischen FTP Client und FTP Server abläuft. Der Rest bleibt dann an dir (als Programmierer) hängen.