Re: Ftp_client.FTP_protocol_violation "Unexpected control message".
Sylvain Le Gall <[email protected]> Wed, 2 Oct 2013 21:28:30 +0000 (UTC)
| Newsgroups | gmane.comp.lang.ocaml.lib.net.devel |
|---|---|
| Message-ID | <[email protected]> |
On 02-10-2013, Sylvain Le Gall <[email protected]> wrote: > Hello, > > I was trying to use ocamlnet to access the FTP server of a my home NAS. > It turns out that it is a very strange hardware and that you get > automaticaly logged in when you connect. > > Here is the transcript (debug on): > # client # exec (connect_method ~host:"wndr4500" ());; > [Wed Oct 2 21:59:55 2013] [debug] [1052:0] Ftp_client: connecting to wndr4500:21 > [Wed Oct 2 21:59:55 2013] [debug] [1052:0] Ftp_client: connected to wndr4500:21 > [Wed Oct 2 21:59:55 2013] [debug] [1052:0] Ftp_client: ctrl received: 230 User logged in. > Exception: Ftp_client.FTP_protocol_violation "Unexpected control message". > > I am using ocamlnet 3.5.1 (provided with Debian). > > Is there any workaround? Is it a bug? FTR (with curl): # perform t;; Exception: Curl.CurlException (CURLE_FTP_WEIRD_SERVER_REPLY, 8, "CURLE_FTP_WEIRD_SERVER_REPLY"). I found the way to setup a password on the share and now it is working, as intended. Cheers, Sylvain Le Gall -- Website: http://sylvain.le-gall.net/ OCaml forge: http://forge.ocamlcore.org OCaml blogs: http://planet.ocaml.org ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk