LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problems downloading using curl and wget (https://www.linuxquestions.org/questions/linux-newbie-8/problems-downloading-using-curl-and-wget-4175568343/)

dale2k9 01-29-2016 03:24 PM

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.

suicidaleggroll 01-29-2016 04:12 PM

Not sure, I just tried the wget version on my machine and it's working fine.

Habitual 01-29-2016 04:21 PM

Code:

curl -O  http://download.jboss.org/wildfly/9.0.2.Final/wildfly-9.0.2.Final.tar.gz
works from here.

Ztcoracat 01-29-2016 07:15 PM

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-::-

BW-userx 01-29-2016 07:16 PM

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 :D

JJJCR 01-29-2016 09:12 PM

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!!

BW-userx 01-29-2016 09:17 PM

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 ;)

dale2k9 02-08-2016 10:29 AM

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.

Ztcoracat 02-08-2016 07:35 PM

Let us know what progress you make.

Tron911 02-09-2016 04:29 AM

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.


All times are GMT -5. The time now is 01:25 AM.