From owner-freebsd-questions@FreeBSD.ORG Tue Dec 16 11:16:44 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C255716A4CE for ; Tue, 16 Dec 2003 11:16:44 -0800 (PST) Received: from pimout1-ext.prodigy.net (pimout1-ext.prodigy.net [207.115.63.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84DDD43D53 for ; Tue, 16 Dec 2003 11:16:34 -0800 (PST) (envelope-from lancelot@at-vantage.com) Received: from peter.at-vantage.com (adsl-68-89-117-169.dsl.rcsntx.swbell.net [68.89.117.169])hBGJGVtx167344; Tue, 16 Dec 2003 14:16:32 -0500 Message-Id: <6.0.1.1.2.20031216131542.01b7c220@mail.at-vantage.com> X-Sender: peter@mail.at-vantage.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Date: Tue, 16 Dec 2003 13:16:32 -0600 To: "Toomas Aas" From: "Lance E. Lott" In-Reply-To: <200312161838.hBGIcTLe005322@lv.raad.tartu.ee> References: <200312161838.hBGIcTLe005322@lv.raad.tartu.ee> Mime-Version: 1.0 Content-Type: multipart/mixed; x-avg-checked=avg-ok-2713312B; boundary="=======44E49CD=======" cc: freebsd-questions@freebsd.org Subject: Re: fetch / wget problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2003 19:16:44 -0000 --=======44E49CD======= Content-Type: text/plain; x-avg-checked=avg-ok-2713312B; charset=us-ascii; format=flowed Content-Transfer-Encoding: 8bit Just a thought, try escaping the . with a \... fetch: ftp://user\.name:password@server.mydomain.com/directory/file.ext: I recently had to do that, and it seemed to work. Lance At 12:38 PM 12/16/2003, you wrote: >Hi! > >I'm trying to write a script which gets a file from remote FTP server. > >The FTP username contains dots and this cannot be changed. > >There are two firewalls involved, one running on the same server where >I'm doing this (ipfilter, using ipnat ftp proxy) and one between this >server and the FTP server. The FTP server itself is in internal network >using RFC1918 addresses and a port in firewall is being forwarded to >this server. > >I think that firewalls are configured correctly, because I can >successfully get the file manually, using the 'ftp' command. > >However, when I try this command: > >fetch ftp://user.name:password@server.mydomain.com/directory/file.ext > >I get an error message: >fetch: ftp://user.name:password@server.mydomain.com/directory/file.ext: >Host not found. > >I suspect that fetch, seeing a dot in username, attempts to 'resolve' >the entire URL, instead of just the part after @. Is there a known >workaround to this? > >I also tried wget, which succeeds to connect, but then, no matter what >I do, insists on using passive mode. > >wget ftp://user.name:password@server.mydomain.com/directory/file.ext >Connecting to server.mydomain.com[12.34.56.78]:2100... connected. >Logging in as user.name ... Logged in! >==> SYST ... done. ==> PWD ... done. >==> TYPE I ... done. ==> CWD /directory ... done. >==> PASV ... >and then the process just hangs. > >I suspect it would work if I could somehow tell wget to NOT use passive >mode. I initially had FTP_PASSIVE_MODE environment variable set, but >removing this didn't affect wget's behaviour. > >Any ideas? >-- >Toomas Aas | toomas.aas@raad.tartu.ee | http://www.raad.tartu.ee/~toomas/ >* RUNTIME ERROR 6D at 417A:32CF : Incompetent user > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > >--- >Incoming mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.545 / Virus Database: 339 - Release Date: 11/27/2003 --=======44E49CD======= Content-Type: text/plain; charset=us-ascii; x-avg=cert; x-avg-checked=avg-ok-2713312B Content-Disposition: inline --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.545 / Virus Database: 339 - Release Date: 11/27/2003 --=======44E49CD=======--