curl-users
Confused with Curl FTP Modes !!!
Date: Thu, 19 Oct 2006 15:02:49 +0100
Hi All,
cURL is wonderful ... and I am new to it. But using a very old cURL
7.8.1 (reasons best known to those who making me use it)
There few confusions lately in way I understand it and any help which
clears it for me is Higly appreciated.
Issue: I use cURL to download files via a Proxy server. I read that
default mode of operation for cURL to download file is passive. but the
below logs creats confusion for me.
cURL commands in script:
curl -m timeout -s -S -U user:pass -x <IP of proxy> <URL of file>
the network connections were like below:
On My machine which connects to Proxy server:
TCP: IPv4
Local Address Remote Address Swind Send-Q Rwind Recv-Q
State
-------------------- -------------------- ----- ------ ----- ------
-------
IP.37625 IP.80 17138 0 24820 0
ESTABLISHED
On proxy server:
TCP IP:1972 IP:21 ESTABLISHED
TCP IP:1973 IP:20 ESTABLISHED
The above indicates that proxy server is doing a Active FTP.
Can someone help me out with how to carry out Active and Passive FTPs
with cURL over a proxy. And also will method differ if proxy is not
used.
Thanks,
K
This email was sent to you by Reuters, the global news and information company.
To find out more about Reuters visit www.about.reuters.com
Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd.
Received on 2006-10-19