Subject: Re: ftp auto fetch
To: Luke Mewburn <lukem@netbsd.org>
From: Ian Harding <iharding@destinydata.com>
List: tech-pkg
Date: 02/27/2003 22:02:15
Thanks! I am using wget now and it seems to work fine.
Ian
----- Original Message -----
From: "Luke Mewburn" <lukem@netbsd.org>
To: "D'Arcy J.M. Cain" <darcy@netbsd.org>
Cc: "Ian Harding" <iharding@destinydata.com>; <tech-pkg@netbsd.org>
Sent: Thursday, February 27, 2003 9:57 PM
Subject: Re: ftp auto fetch
> On Fri, Feb 28, 2003 at 12:18:56AM -0500, D'Arcy J.M. Cain wrote:
> | On Friday 28 February 2003 00:12, Ian Harding wrote:
> | > I am trying to fetch files from an HTTP server that is
misconfigured. It
> | > returns 400 Bad Request if the browser name doesn't have start with
> | > "Mozilla". ftp identifies itself, sensibly, as "NetBSD-ftp/....".
> |
> | What makes you say that it is mis-configured.
>
> The web site is broken if it expects the client program to return a
> particular string before allowing a download...
>
>
> | If it is a http URI then wouldn't you expect it to require http to
access?
>
> ftp *does* use HTTP to retrieve http:// arguments on the command line.
>
>
> | > Is there any way to make ftp lie and call itself something like
> | > "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"?
>
> Not at this time, and I'm unlikely to find the motivation to add
> support for this. Try using a dedicated http retrieval tool such as
> wget, which supports faking the user-agent.
>
> Luke.