cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: FTPS over HTTP proxy unable to setup data connection

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 10 Jun 2015 00:34:55 +0200

On Tue, Jun 09, 2015 at 03:35:01PM +0000, Amit Umbarkar wrote:
> I am trying to post a file on FTPS site via HTTP proxy using “implicit” method.
> Though am able to login & change directories, but hitting upon “* FTP response
> reading failed” error on each attempt of file STOR command. Here are the
> detailed logs –
>
> /home$ curl --user xxxx:xxxx --tlsv1 --disable-epsv --show-error -Q "CWD
> inbound" -Q "TYPE I" -Q PWD -Q PASV -Q "STOR abc.txt" --verbose --proxytunnel
> -x proxy.xyz.com:80 ftps://ftpssl.rbc.com

Why are you setting all those -Q options? All those commands are sent by curl
itself automatically, and their presence is confusing curl's internal state
machine. Remove them, change the URL to
ftps://ftpssl.rbc.com/inbound/abc.txt and add the option -T abc.txt (to specify
the uploaded file name) and you should see much better results.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-06-10