From: Sylvain Le G. <sy...@le...> - 2013-10-02 21:29:08
|
On 02-10-2013, Sylvain Le Gall <sy...@le...> 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 |