On Thu, 18 Apr 2002, Martin Costabel wrote:

> "Olivier M." wrote:
>
> > wget --non-verbose --passive-ftp 
>http://www.kondara.org/libjconv/libjconv-2.8.1.tar.gz
> > http://www.kondara.org/libjconv/libjconv-2.8.1.tar.gz:
> > 08:30:09 ERROR 403: Forbidden.
> > ### wget failed, exit code 1
> []
> > Funny: with curl it works! But it seems the server filters wget
> > requests!
>
> I confirm. Very curious.

I was getting the same error on the same package a couple of weeks ago.
Because 403 Forbidden usually means that the site maintainers forgot to
make the file available for downloading, I thought that was the case here,
and that they'd be able to see the problem in their logs and would fix it.
After a week of no change, I asked here & the problem was found -- the
server is doing exactly what they want it to do. Sneaky bastards :)

One way to get past this -- and I don't see a way to automate this change
in /sw/etc/wgetrc -- is to use this command line switch:

  % wget --help | grep agent
    -U,  --user-agent=AGENT    identify as AGENT instead of Wget/VERSION.

So you can use, say:

 wget -U "Mozilla/4.0 (compatible; Fink->wget)" http://blah.blah/yadda.tgz

Currently, Wget is advertising itself as "Wget/1.8.1". Obviously this site
is filtering on that or something matching that.


--
Chris Devers                                [EMAIL PROTECTED]
Apache / mod_perl / http://homepage.mac.com/chdevers/resume/

"More war soon. You know how it is."    -- mnftiu.cc


_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to