LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-23-2004, 11:17 PM   #1
ivj
Member
 
Registered: Jul 2004
Posts: 61

Rep: Reputation: 15
wget gives me 404 when IE works just fine...?


When I try to retrieve the following link:

http://apache.bestwebcover.com/james/james-2.2.0.tar.gz

using IE, I begin to download a file, and everything is beautiful. However, if I try to use wget on that file, I get

[root@xxx usr]# wget http://apache.bestwebcover.com/james/james-2.2.0.tar.gz
--00:15:26-- http://apache.bestwebcover.com/james/james-2.2.0.tar.gz
=> `james-2.2.0.tar.gz'
Resolving apache.bestwebcover.com... done.
Connecting to apache.bestwebcover.com[198.78.130.100]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
00:15:26 ERROR 404: Not Found.

That happens for many other files I try to download, but majority of files download just fine (using wget)...

anybody knows what the problem could be?
 
Old 07-24-2004, 02:44 AM   #2
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Works just fine for me. Did you try with another browser from linux?
 
Old 07-24-2004, 03:20 AM   #3
ivj
Member
 
Registered: Jul 2004
Posts: 61

Original Poster
Rep: Reputation: 15
I only have shell access for linux, it doesn't even have a screen

what could be the problem?
 
Old 07-24-2004, 04:08 AM   #4
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Lynx, baby lynx! That's one way to check it out. I'm not sure what the problem is but can you telnet/ssh/ftp there? Also, try and ping them and then port scan your linux box (and possibly them, too). There may be some wierd firewall problem. The only thing I can think of is that the windows computer is allowed access but the linux box isn't. This may have something to do with your network topology.
 
Old 07-24-2004, 06:59 AM   #5
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
Several servers will check a request to see that it was referred from the page containing the link. This way, the file won't be linked from another site. If this is the case, you have to pass the '--referer=http://page.url' option. Take a look at 'man wget' for other options. You may also have to pass the option '-U agent-string', which specifies the browser type.

Enjoy!
--- Cerbere
 
Old 07-24-2004, 07:49 AM   #6
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Yes but wget worked just fine for me without any of those options.
 
Old 07-24-2004, 01:24 PM   #7
ivj
Member
 
Registered: Jul 2004
Posts: 61

Original Poster
Rep: Reputation: 15
I figured out what's wrong... It was the ... tada... firewall.

When I was setting up my HTTP routing from 80 to 8080 for some reason I also set it for outgoing packets, and apparently I was trying to retrieve stuff from 8080 not 80
 
Old 07-24-2004, 10:13 PM   #8
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Yay.
 
  


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
wget works but telnet [host] 80 does not connect ttonteri Linux - Networking 6 12-28-2004 09:57 AM
acpi works fine with 2.4 but not with 2.6 sneutrinono Linux - Laptop and Netbook 6 11-19-2004 05:04 AM
wget 404 error BarryM45 Linux - General 2 10-12-2004 05:12 AM
e0 will Rx, but not Tx...e1 works fine giant Linux - Networking 2 09-15-2004 01:13 PM
Works just fine...I think /home/kyle Linux - Software 0 03-10-2004 05:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:22 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration