Davor Posted April 1, 2008 Share Posted April 1, 2008 (edited) Hi together, I have the problem, that I cant put a file on a ftp-server through a proxy. Here ist the code: #include <ftp.au3> ; Test on funpic-ftp $server = 'ftp.xxx.da.funpic.de' $username = 'xxx' $pass = 'xxx' $port ='21' $dll = DllOpen(@SystemDir & 'wininet.dll') FtpSetProxy(2,"xxxx.net:8080") If @error Then MsgBox(64,"","Proxy nicht gesetzt") $Open = _FTPOpen('MyFTP',0) If @error Then MsgBox(64,'Verbindung', 'ftpopen fehlgeschlagen') $Conn = _FTPConnect($Open, $server ,$username ,$pass, $port ) If @error Then MsgBox(64,'Verbindung', 'ftpConnect fehlgeschlagen') $Ftpp = _FtpPutFile($Conn,@ScriptDir & '\test.txt', 'test.txt') If @error Then MsgBox(64,'Verbindung', 'ftpPutFile fehlgeschlagen') $Ftpc = _FTPClose($Open) If @error Then MsgBox(64,'Verbindung', 'ftpclose fehlgeschlagen') DllClose($dll) I get the connect, putfile and close msgbox-error.. Hope somebody can help me. FTP via this proxy is no problem with other applications (e.g. Total Commander) best regards Davor Edited April 1, 2008 by Davor Link to comment Share on other sites More sharing options...
/dev/null Posted April 2, 2008 Share Posted April 2, 2008 (edited) just download ncftpput http://www.ncftp.com/ncftp/doc/ncftpput.html and run it with the appropriate parameters. ncftpclient has much more capabilities than the _FTP* functions.Download: http://www.ncftp.com/download/CheersKurt Edited April 2, 2008 by /dev/null __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
Xenobiologist Posted April 2, 2008 Share Posted April 2, 2008 (edited) Hi, I tested it in our company network. It doesn't work either. Test script: #include<Inet.au3> ConsoleWrite('!Proxy1 : ' & HttpSetProxy(2, "http://user:password\@proxy:port) & @CRLF) ConsoleWrite('!Proxy2 : ' & HttpSetProxy(2, 'proxy:port', 'user', 'password') & @CRLF) ConsoleWrite(_INetGetSource("www.google.de") & @CRLF)oÝ÷ Ù'"µã®¶r^ßs룵çÍwÜúèÇ-¹ó^´ßpÎ 6tÌ,õ,·ãÿÖÜ/ÿ 0ÇLÂøÓTëj{"¶*'j_ÿÝøßm¶|ÿü0à è®ÓGøm^?,yÛ]߶ëAÓ0¾¶ëAÄ>¶ëCLÓLñP Mega Edited April 2, 2008 by Xenobiologist Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Davor Posted April 2, 2008 Author Share Posted April 2, 2008 just download ncftpput http://www.ncftp.com/ncftp/doc/ncftpput.html and run it with the appropriate parameters. ncftpclient has much more capabilities than the _FTP* functions.Download: http://www.ncftp.com/download/Cheersthanks for this info.I already tried ncftpput. It do not work either.in verbose mode I get the error, that the hostname couln´t be resolved.best regardsDavor Link to comment Share on other sites More sharing options...
Xenobiologist Posted April 2, 2008 Share Posted April 2, 2008 Hi, anybody out there who did a test with HttpSetProxy from a company network to download something? Does it work for anybody? Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
/dev/null Posted April 2, 2008 Share Posted April 2, 2008 thanks for this info.I already tried ncftpput. It do not work either.in verbose mode I get the error, that the hostname couln´t be resolved.well, O.K. ..... and that did not tell you anything??? __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
Davor Posted April 3, 2008 Author Share Posted April 3, 2008 well, O.K. ..... and that did not tell you anything???should it? my networking-colleague said, that our proxy has no resolving-problems, becauseif it would be so, much more sites and downloads would not work. Link to comment Share on other sites More sharing options...
Xenobiologist Posted April 3, 2008 Share Posted April 3, 2008 HI, you can try using nslookup or ping. Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Xenobiologist Posted April 4, 2008 Share Posted April 4, 2008 Hi, anybody who succesfully tested HttpSetProxy? Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now