Jump to content

FTP-Upload via Proxy does not work


Recommended Posts

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 by Davor
Link to comment
Share on other sites

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/

Cheers

Kurt

Edited 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

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 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

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/

Cheers

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.

best regards

Davor

Link to comment
Share on other sites

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

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

well, O.K. ..... and that did not tell you anything???

should it? :)

my networking-colleague said, that our proxy has no resolving-problems, because

if it would be so, much more sites and downloads would not work.

Link to comment
Share on other sites

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

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

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...