Why wget fails with 'https: Host not found' on Windows?












0















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









share|improve this question

























  • 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
















0















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









share|improve this question

























  • 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














0












0








0








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









share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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



















  • 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










2 Answers
2






active

oldest

votes


















0














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





share|improve this answer































    0














    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





    share|improve this answer























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


      }
      });














      draft saved

      draft discarded


















      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









      0














      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





      share|improve this answer




























        0














        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





        share|improve this answer


























          0












          0








          0







          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





          share|improve this answer













          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






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 11 '15 at 20:04









          KaranKaran

          49.3k1489161




          49.3k1489161

























              0














              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





              share|improve this answer




























                0














                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





                share|improve this answer


























                  0












                  0








                  0







                  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





                  share|improve this answer













                  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






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 11 '15 at 20:38









                  kenorbkenorb

                  11.3k1579116




                  11.3k1579116






























                      draft saved

                      draft discarded




















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                      Mangá

                      Eduardo VII do Reino Unido