LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 02-06-2007, 07:13 PM   #1
moob8
Member
 
Registered: Sep 2006
Distribution: slackware
Posts: 132

Rep: Reputation: 15
it downloads in firefox, not in wget


There are some sites I go to where I can click on a file to download in firefox and it will begin to download. The firefox download tends to poop out about 200K or so in so I use wget to get anything more than 200k or so. Recently I have begun to see files that will start to download in firefox, but the same URL, when passed to wgetc, fails to download.

As a specific example, from the page http://princess.elricm.net/PSModsList.htm If I click the link for http://downloads.elricm.net/hosted/p...asAtLokken.zip
in firefix I'll get the start of a download. This demonstrates that the link is valid. If I try it with wget I get this:
Code:
--20:00:10--  http://downloads.elricm.net/hosted/princess/ChristmasAtLokken.zip
           => `ChristmasAtLokken.zip'
Resolving downloads.elricm.net... 64.72.118.223
Connecting to downloads.elricm.net|64.72.118.223|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://www.elricm.com/nuke/html/404forbidden.php [following]
--20:00:11--  http://www.elricm.com/nuke/html/404forbidden.php
           => `404forbidden.php'
Resolving www.elricm.com... 64.72.118.140
Connecting to www.elricm.com|64.72.118.140|:80... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
20:00:12 ERROR 500: Internal Server Error.
Errr, ooookayyyy. Now what? Any ideas? Thanks in advance.

edit: the intent here is to find a way to get wget to download such files.

Last edited by moob8; 02-10-2007 at 09:08 AM.
 
Old 02-06-2007, 08:01 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
They are trying to protect against direct links by using some sort of rudimentary tracking/authentication (to see this, try to clear your browser cache/cookies/whatever else and then click the link you posted).
 
Old 02-10-2007, 09:10 AM   #3
moob8
Member
 
Registered: Sep 2006
Distribution: slackware
Posts: 132

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by osor
They are trying to protect against direct links by using some sort of rudimentary tracking/authentication (to see this, try to clear your browser cache/cookies/whatever else and then click the link you posted).
So are you saying that I would clear the firefox cookies in order to get wget to download successfully?
 
Old 02-10-2007, 09:40 AM   #4
yodermk
Member
 
Registered: Feb 2006
Location: San Antonio
Distribution: Kubuntu Feisty
Posts: 43

Rep: Reputation: 15
No, Firefox would then refuse to download it!

If that is correct, what's happening is the server is checking the "Referrer:" header to make sure you were already browsing their page when you started the download. This prevents other sites from leeching their bandwidth by linking directly to the file.

You may be able to download it with wget by adding:

--referer=http://whatever

to the command line, where "whatever" is the page you were browsing when you clicked the download link.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where are wget downloads saved when using bash? kb9agt General 6 01-29-2007 11:04 AM
LXer: Firefox 2: traveling at 30 downloads/second LXer Syndicated Linux News 0 10-31-2006 02:54 PM
Running wget multiple downloads simultaneously stefaandk Linux - Newbie 1 09-04-2006 07:46 AM
wget re-downloads all files grater than 10M gintaras46 Linux - General 3 12-24-2005 08:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 03:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration