[Techtalk] download_script.php with wget

Raquel Rice raquel at thericehouse.net
Tue Jan 11 10:51:11 EST 2005


On Mon, 10 Jan 2005 17:26:50 -0600
Gretchen Dziengel <gretchen at gretchenann.com> wrote:

> When I have some down time at work, I log in to my home computer
> to play around with Linux stuff.  Lots of times I like to download
> files to my home computer with wget.  Works great most of the
> time.  I copy the link right into putty.  The problem is with urls
> such as:
> http://www.vim.org/scripts/download_script.php?src_id=3576
> 
> That downloads a file called "download_script.php?src_id3576" 
> That file is not the file I've tried to download either.
> 
> I've googled and checked the wget mail archives but I'm not sure
> if I'm using the correct search terms.  Can anyone give me a hint
> on how to handle this?  More and more sites seem to be doing it.
> 
> Gretchen
> 

I think that the problem is that you don't have a filename with the
URL http://www.vim.org/scripts/download_script.php?src_id=3576 . 
WGet works with files.  When the file is saved, it's saved as what
wget can understand from the URL.  "donwload_script.php", as one
might guess, is a script which probably reads a database, looking up
the file with an src_id of 3576.  It doesn't return a filename.  It
only returns the file.  If you know the make of the file you're
downloading, you can probably rename "download_script?src_id3576" to
that filename.  In this case, the filename is Viki.zip

-- 
Raquel
============================================================
I believe that what woman resents is not so much giving herself in
pieces as giving herself purposelessly.
  --Anne Morrow Lindbergh



More information about the Techtalk mailing list