LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-29-2016, 04:24 PM   #1
dale2k9
LQ Newbie
 
Registered: Jan 2016
Posts: 6

Rep: Reputation: Disabled
Problems downloading using curl and wget


I'm not sure if this is a Linux issue for me or something to post to the jboss wildfly forums. I am trying to download wildfly onto a centos box using wget or curl. The commands I tried are:
wget http://download.jboss.org/wildfly/9....2.Final.tar.gz

curl -O http://download.jboss.org/wildfly/9....2.Final.tar.gz
In both cases, the downloads failed saying the connection was refused but if I post the same URL, http://download.jboss.org/wildfly/9....2.Final.tar.gz, into a browser the file downloads just fine. I was able to download other files from other JBoss servers so I don't know if it is a problem with my request or their server.

Any ideas what might be wrong, if anything, on my end?

Thanks.
 
Old 01-29-2016, 05:12 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137
Not sure, I just tried the wget version on my machine and it's working fine.
 
Old 01-29-2016, 05:21 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: Mojave
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
curl -O  http://download.jboss.org/wildfly/9.0.2.Final/wildfly-9.0.2.Final.tar.gz
works from here.
 
Old 01-29-2016, 08:15 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163
Are you getting this message?

Code:
the connection was refused when attempting to contact http://(site your trying to go to) though the site seems valid the browser was unable to establish a connection
That happened to me the other day that I tried to go to the CUPS website.
Upon running 'cupsd' in the konsole solved that.

-::-The problem might be with their server and or your ISP could be putting a cap on what you can download.-::-
-::-Try clearing your cookies-::-
 
Old 01-29-2016, 08:16 PM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware FreeBSD Win10 MX
Posts: 9,632

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
what ever happened to FTP?

Code:
userx@voided ~>>$lftp http://download.jboss.org/wildfly
cd: received redirection to `http://download.jboss.org/wildfly/'
cd: Access failed: 403 Forbidden (/wildfly)
userx@voided ~>>$lftp http://download.jboss.org/
cd ok, cwd=/
lftp download.jboss.
looks like the directrory wildfly is forbidden usig lftp

Question:

why dont you just open a browser and download it like that?
or
just click on it in your question here and it works for me

Last edited by BW-userx; 01-29-2016 at 08:36 PM.
 
Old 01-29-2016, 10:12 PM   #6
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,645

Rep: Reputation: 278Reputation: 278Reputation: 278
try command below just check if you are able to resolve successfully or whether the file exists, anyway it won't download the file so no harm.

wget --spider http://download.jboss.org/wildfly/9....2.Final.tar.gz

Good luck!!
 
1 members found this post helpful.
Old 01-29-2016, 10:17 PM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware FreeBSD Win10 MX
Posts: 9,632

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
Quote:
userx@voided 09:14:16 ~ >>$ wget --spider http://download.jboss.org/wildfly/9....2.Final.tar.gz
Spider mode enabled. Check if remote file exists.
--2016-01-29 21:14:22-- http://download.jboss.org/wildfly/9....2.Final.tar.gz
Resolving download.jboss.org (download.jboss.org)... 23.207.28.79
Connecting to download.jboss.org (download.jboss.org)|23.207.28.79|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
Remote file does not exist -- broken link!!!
Quote:
userx@voided 09:14:22 ~ >>$8 wget --spider http://download.jboss.org/wildfly/9....2.Final.tar.gz
Spider mode enabled. Check if remote file exists.
--2016-01-29 21:16:26-- http://download.jboss.org/wildfly/9....2.Final.tar.gz
Resolving download.jboss.org (download.jboss.org)... 23.207.28.79
Connecting to download.jboss.org (download.jboss.org)|23.207.28.79|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 135659070 (129M) [application/x-gzip]
Remote file exists.
Code:
wget --spider http://download.jboss.org/wildfly/9.0.2.Final/wildfly-9.0.2.Final.tar.gz
Had to put the actual complete address in to get that to work
sorry I was courious too

Last edited by BW-userx; 01-29-2016 at 10:21 PM.
 
1 members found this post helpful.
Old 02-08-2016, 11:29 AM   #8
dale2k9
LQ Newbie
 
Registered: Jan 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks, all. I'll try the spider option. It sounds like others here have had mixed results, too. I assume the issue is on the side of the Jboss server. I have been focused on other things and haven't got to work on this for a couple weeks but I do appreciate the help and support. I'll try it again later this week, I hope.
 
Old 02-08-2016, 08:35 PM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163
Let us know what progress you make.
 
Old 02-09-2016, 05:29 AM   #10
Tron911
LQ Newbie
 
Registered: Feb 2016
Location: Italy
Distribution: CENTOS 7
Posts: 1

Rep: Reputation: Disabled
Looks like a reverse proxy server side issue.
My opinion is that, for some reason, the firewall between you and the web server (akamai side) think that your wget or curl -O is an attack.
 
  


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 - Problems downloading files from a password secured page scrabble Linux - Software 1 07-13-2011 09:18 AM
wget/curl problems PLS HELP tommmmmm Linux - Software 0 08-19-2005 04:58 AM
wget/curl problems. redirection after post method tommmmmm Linux - Software 1 08-10-2005 11:36 AM
YOU for SUSE 9.1 - curl or wget? djc SUSE / openSUSE 1 02-15-2005 04:26 PM
Wget and cURL can't connect umberleigh Linux - Newbie 0 09-21-2004 06:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration