cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: basic help please

From: Lee Elcocks <l_elcocks_at_hotmail.co.uk>
Date: Fri, 3 Dec 2010 09:01:29 +0000

Hi all
 
May thanks for that, that works a treat! However we are getting stuck somewhere else now! The server requires passive connection so the command PASV is issued. According to the documentation issued by the owners of the server in question when the PASV command is issued the response should be
 
h1,h2,h3,h4,p1,p2,
 
However when connecting we get the response,
 
h1.h2.h3.h4,p1,p2 (notice the difference between full stops and comma's)
 
Here is the error taken from the log.
 
=> Send header, 6 bytes (0x6)
0000: PASV
== Info: Connect data stream passively
<= Recv header, 52 bytes (0x34)
0000: 227 Entering Passive Mode (157.203.50.171,201,191)
== Info: Couldn't interpret the 227-response
== Info: Closing connection #0
== Info: SSLv3, TLS alert, Client hello (1):
=> Send SSL data, 2 bytes (0x2)
0000: ..
 
Can you please explain error 227 couldn't interpret? Does that mean that CURL does not understand the full stops? Ive taken this up with the admin, I would be interested in your opinion. am i doing something wrong?
 
> Date: Thu, 2 Dec 2010 14:17:47 -0800
> From: dan_at_coneharvesters.com
> To: curl-users_at_cool.haxx.se
> Subject: Re: basic help please
>
> On Tue, Nov 30, 2010 at 05:07:56PM +0000, Lee Elcocks wrote:
> > Have downloaded latest Curl for windows
> >
> > need to connect to Mydomain.com so that i can FTP files to and from.
> >
> > The server requires FTPS explicit (TLS AUTH)
> >
> > I have my private key and signed cert in Curl directory, they re in PEM format.
> > I use the -K so that it accepts the servers certificate (I have to or i get
> > numerous errors)
> >
> > the server that i need to connect to requires that i issue the
> > following commands in the following sequence, in order to send a file, can
> > somebody help me put together a command sequence?
> >
> > 1.AUTH TLS
> > 2.PBSZ 0
> > 3.PROT P
> > 4.USER
> > 5.PASS
> > 6.ACCT
> > 7.STRU F
> > 8.TYPE I
> > 9.MODE S
> > 10.PASV
> > 11.STOR
> > 12.QUIT
> >
> > Many thanks for any help with this.
>
> Something like this should get you started:
>
> curl -T FILE_TO_SEND --ftp-ssl-reqd --ftp-account ACCOUNT_DATA \
> --cert CERTIFICATE_FILE --cert-type PEM --cacert CA_CERT \
> --quote 'STRU F' --quote 'MODE S' \
> ftp://mydomain.com/my/dir/
>
> See how far you get with that then read the manual to see how you can
> tweak things. See http://curl.haxx.se/docs/sslcerts.html for docs on
> using certificates with curl.
>
> >>> 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
                                               

-------------------------------------------------------------------
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 2010-12-03