Why wget fails with 'https: Host not found' on Windows?
I'm trying to use wget on Windows 8.1 prompt. I installed wget.exe in the folder System32 and run wget on cmd. But the following error appear:
M:site>wget http://wordpress.org/latest.zip
--15:44:37-- http://wordpress.org:80/latest.zip
=> `latest.zip'
Connecting to wordpress.org:80... connected!
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://wordpress.org/latest.zip [following]
--15:44:37-- ftp://https:21/%2Fwordpress.org/latest.zip
=> `latest.zip'
Connecting to https:21...
https: Host not found
windows download wget redirection
add a comment |
I'm trying to use wget on Windows 8.1 prompt. I installed wget.exe in the folder System32 and run wget on cmd. But the following error appear:
M:site>wget http://wordpress.org/latest.zip
--15:44:37-- http://wordpress.org:80/latest.zip
=> `latest.zip'
Connecting to wordpress.org:80... connected!
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://wordpress.org/latest.zip [following]
--15:44:37-- ftp://https:21/%2Fwordpress.org/latest.zip
=> `latest.zip'
Connecting to https:21...
https: Host not found
windows download wget redirection
Cross-posted: wget on Windows return error at stackoverflow
– kenorb
Apr 11 '15 at 20:33
Which version of wget are you using?
– kenorb
Apr 11 '15 at 20:34
add a comment |
I'm trying to use wget on Windows 8.1 prompt. I installed wget.exe in the folder System32 and run wget on cmd. But the following error appear:
M:site>wget http://wordpress.org/latest.zip
--15:44:37-- http://wordpress.org:80/latest.zip
=> `latest.zip'
Connecting to wordpress.org:80... connected!
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://wordpress.org/latest.zip [following]
--15:44:37-- ftp://https:21/%2Fwordpress.org/latest.zip
=> `latest.zip'
Connecting to https:21...
https: Host not found
windows download wget redirection
I'm trying to use wget on Windows 8.1 prompt. I installed wget.exe in the folder System32 and run wget on cmd. But the following error appear:
M:site>wget http://wordpress.org/latest.zip
--15:44:37-- http://wordpress.org:80/latest.zip
=> `latest.zip'
Connecting to wordpress.org:80... connected!
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://wordpress.org/latest.zip [following]
--15:44:37-- ftp://https:21/%2Fwordpress.org/latest.zip
=> `latest.zip'
Connecting to https:21...
https: Host not found
windows download wget redirection
windows download wget redirection
edited Apr 12 '15 at 2:51
kenorb
11.3k1579116
11.3k1579116
asked Apr 11 '15 at 18:53
marcelo2605marcelo2605
10313
10313
Cross-posted: wget on Windows return error at stackoverflow
– kenorb
Apr 11 '15 at 20:33
Which version of wget are you using?
– kenorb
Apr 11 '15 at 20:34
add a comment |
Cross-posted: wget on Windows return error at stackoverflow
– kenorb
Apr 11 '15 at 20:33
Which version of wget are you using?
– kenorb
Apr 11 '15 at 20:34
Cross-posted: wget on Windows return error at stackoverflow
– kenorb
Apr 11 '15 at 20:33
Cross-posted: wget on Windows return error at stackoverflow
– kenorb
Apr 11 '15 at 20:33
Which version of wget are you using?
– kenorb
Apr 11 '15 at 20:34
Which version of wget are you using?
– kenorb
Apr 11 '15 at 20:34
add a comment |
2 Answers
2
active
oldest
votes
Using GNU WGet the following command worked after I got a message about a certificate error:
wget --no-check-certificate "http://wordpress.org/latest.zip"
Using a cURL version with SSL support also works:
curl --insecure "https://wordpress.org/latest.zip" -o wplatest.zip
add a comment |
It looks like:
- your
wget
is old and buggy, - it doesn't have HTTPS support,
- server sends a malformed redirection.
So it's treating https://foo
as if it matched the host:path
shorthand syntax for ftp URLs.
So if this command fails for older versions of wget, try to upgrade your wget
.
The more recent versions of wget should recognize it at least as an unsupported scheme.
Alternatively use curl
, for example:
curl -O http://wordpress.org/latest.zip
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f900481%2fwhy-wget-fails-with-https-host-not-found-on-windows%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Using GNU WGet the following command worked after I got a message about a certificate error:
wget --no-check-certificate "http://wordpress.org/latest.zip"
Using a cURL version with SSL support also works:
curl --insecure "https://wordpress.org/latest.zip" -o wplatest.zip
add a comment |
Using GNU WGet the following command worked after I got a message about a certificate error:
wget --no-check-certificate "http://wordpress.org/latest.zip"
Using a cURL version with SSL support also works:
curl --insecure "https://wordpress.org/latest.zip" -o wplatest.zip
add a comment |
Using GNU WGet the following command worked after I got a message about a certificate error:
wget --no-check-certificate "http://wordpress.org/latest.zip"
Using a cURL version with SSL support also works:
curl --insecure "https://wordpress.org/latest.zip" -o wplatest.zip
Using GNU WGet the following command worked after I got a message about a certificate error:
wget --no-check-certificate "http://wordpress.org/latest.zip"
Using a cURL version with SSL support also works:
curl --insecure "https://wordpress.org/latest.zip" -o wplatest.zip
answered Apr 11 '15 at 20:04
KaranKaran
49.3k1489161
49.3k1489161
add a comment |
add a comment |
It looks like:
- your
wget
is old and buggy, - it doesn't have HTTPS support,
- server sends a malformed redirection.
So it's treating https://foo
as if it matched the host:path
shorthand syntax for ftp URLs.
So if this command fails for older versions of wget, try to upgrade your wget
.
The more recent versions of wget should recognize it at least as an unsupported scheme.
Alternatively use curl
, for example:
curl -O http://wordpress.org/latest.zip
add a comment |
It looks like:
- your
wget
is old and buggy, - it doesn't have HTTPS support,
- server sends a malformed redirection.
So it's treating https://foo
as if it matched the host:path
shorthand syntax for ftp URLs.
So if this command fails for older versions of wget, try to upgrade your wget
.
The more recent versions of wget should recognize it at least as an unsupported scheme.
Alternatively use curl
, for example:
curl -O http://wordpress.org/latest.zip
add a comment |
It looks like:
- your
wget
is old and buggy, - it doesn't have HTTPS support,
- server sends a malformed redirection.
So it's treating https://foo
as if it matched the host:path
shorthand syntax for ftp URLs.
So if this command fails for older versions of wget, try to upgrade your wget
.
The more recent versions of wget should recognize it at least as an unsupported scheme.
Alternatively use curl
, for example:
curl -O http://wordpress.org/latest.zip
It looks like:
- your
wget
is old and buggy, - it doesn't have HTTPS support,
- server sends a malformed redirection.
So it's treating https://foo
as if it matched the host:path
shorthand syntax for ftp URLs.
So if this command fails for older versions of wget, try to upgrade your wget
.
The more recent versions of wget should recognize it at least as an unsupported scheme.
Alternatively use curl
, for example:
curl -O http://wordpress.org/latest.zip
answered Apr 11 '15 at 20:38
kenorbkenorb
11.3k1579116
11.3k1579116
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f900481%2fwhy-wget-fails-with-https-host-not-found-on-windows%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Cross-posted: wget on Windows return error at stackoverflow
– kenorb
Apr 11 '15 at 20:33
Which version of wget are you using?
– kenorb
Apr 11 '15 at 20:34