cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl prequote does not take effect

From: <yuxia.gao_at_thomsonreuters.com>
Date: Tue, 1 Nov 2016 06:08:33 +0000

Hi,

I am now using curl to connect to a ftp server, and the version is curl-7.46.0-win64.

Before download, I want to set transfer type to binary. My command is as below

curl -v -v ftp://167.76.40.96 --user bridge:data -Q "+TYPE I"

and the response is as below, you can see that there is no command "TYPE I" sent to the server side.

* Rebuilt URL to: ftp://167.76.40.96/
* Trying 167.76.40.96...
* Connected to 167.76.40.96 (167.76.40.96) port 21 (#0)
< 220 Microsoft FTP Service
> USER bridge
< 331 Password required for bridge.
> PASS data
< 230 User bridge logged in.
> PWD
< 257 "/" is current directory.
* Entry path is '/'
> EPSV
* Connect data stream passively
< 229 Entering Extended Passive Mode (|||59073|)
* Trying 167.76.40.96...
* Connecting to 167.76.40.96 (167.76.40.96) port 59073
* ftp_perform ends with SECONDARY: 0
* Connected to 167.76.40.96 (167.76.40.96) port 21 (#0)
> TYPE A
< 200 Command okay.
> LIST
< 150 File status okay; about to open data connection.
* Maxdownload = -1

Yuxia Gao (Gloria)
Senior Software Engineer
Thomson Reuters
Phone: 86 10 62674388
Mobile Phone: 13716374940
yuxia.gao_at_thomsonreuters.com<mailto:tim.jin_at_thomsonreuters.com>
=====================================================================
[Global News Collection Dev Support] : 24x5
 Email: Global_News_Collection_at_thomsonreuters.com<mailto:Global_News_Collection_at_thomsonreuters.com>
 GMT 1:00-13:00: Beijing, +86 13810900533(primary) +86 13810900602(secondary)
 GMT 13:00-1:00: St. Louis, +1 314 341 0171(Aaron) Toronto, +1 647 338 0783(Shao)

=====================================================================

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-users
FAQ: https://curl.haxx.se/docs/faq.html
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-11-01