curl-users
microsoft ftp service with firewall problem
Date: Fri, 18 Mar 2005 03:22:56 +0800 (CST)
Hi,
I am having problem with microsoft ftp service with
widnows firewall. Below is the trace from the command
line. Windows ftp client will work just fine with, or
without firewall. curl works fine if I turn the
firewall off. Is there a way to enable curl to work
with the ftp service behind firewall? Thanks for your
help.
C:>curl -uaccount
:password -l ftp://192.168.0.40 -v
* About to connect() to 192.168.0.40 port 21
* Trying 192.168.0.40... * connected
* Connected to 192.168.0.40 (192.168.0.40) port 21
< 220 Microsoft FTP Service
> USER account
< 331 Password required for account.
> PASS password
< 230 User account logged in.
* We have successfully logged in
> PWD
< 257 "/" is current directory.
* Entry path is '/'
> EPSV
< 500 'EPSV': command not understood
> PASV
< 227 Entering Passive Mode (192,168,0,40,10,64).
* Trying 192.168.0.40... * Timed out
* Connection #0 to host 192.168.0.40 left intact
curl: (7) couldn't connect
* Closing connection #0
C:>
C:>curl -uaccount
:password -l ftp://192.168.0.40 -v --disable-epsv
* About to connect() to 192.168.0.40 port 21
* Trying 192.168.0.40... * connected
* Connected to 192.168.0.40 (192.168.0.40) port 21
< 220 Microsoft FTP Service
> USER account
< 331 Password required for account.
> PASS password
< 230 User account logged in.
* We have successfully logged in
> PWD
< 257 "/" is current directory.
* Entry path is '/'
> PASV
< 227 Entering Passive Mode (192,168,0,40,10,102).
* Trying 192.168.0.40... * Timed out
* Connection #0 to host 192.168.0.40 left intact
curl: (7) couldn't connect
* Closing connection #0
Received on 2005-03-17