wget doesn't support https











up vote
7
down vote

favorite
2












I want to download https://example.com using the wget command, but it says “unsupported/unrecognized protocol”. I tried using the --secure protocol='' but that does not work.
I downloaded the tar file from GNU wget and tried configuring that but I failed.



Here is an example of what I see:



bash-2.05$ wget https://www.facebook.com/
https://www.facebook.com/: Unknown/unsupported protocol.
bash-2.05$


Hi folks thanks for the answers, the verified the version of my wget it says as below



bash-2.05$ wget -V
GNU Wget 1.6

Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

Originally written by Hrvoje Niksic <hniksic@arsdigita.com>.


and I have no idea if my wget is compiled by SSL and the SSL is enabled or not.
Could you please let me know how to compile the wget command. I tried running the configure file and then typed make command, that gives me command not found error. Even after running the configuration file it does not give me any wget file created in /usr/local/.



bash-2.05$ cd wget-1.10.1
bash-2.05$ ./configure --prefix=/usr/local --with-ssl
bash-2.05$ make
bash: make: command not found


the version I downloaded is
wget-1.10.1.tar



wget command versionconfigure command generated log










share|improve this question
























  • Please update your question to include the exact comment being run and the exact error being displayed.
    – steve
    Jul 19 '15 at 16:54






  • 1




    Also, what operating system and version are you using?
    – mjturner
    Jul 19 '15 at 18:03










  • 1. What are you trying to get with wget, as wget normally requires a URL containing a file? 2. Is your wget compiled with SSL support? 3. Is bash-2.05 really your bash version? Mine is 4.3.33.
    – eyoung100
    Jul 19 '15 at 20:46






  • 1




    Is this an embedded system? It feels like this is actually something like a busybox version of wget.
    – roaima
    Jul 19 '15 at 21:07






  • 1




    @roaima The message I get from Busybox is wget: not an http or ftp url: … This seems to be neither GNU wget nor Busybox. Either way, it obviously doesn't support HTTPS and the solution is to install a different version or a different tool that supports HTTPS.
    – Gilles
    Jul 19 '15 at 21:57

















up vote
7
down vote

favorite
2












I want to download https://example.com using the wget command, but it says “unsupported/unrecognized protocol”. I tried using the --secure protocol='' but that does not work.
I downloaded the tar file from GNU wget and tried configuring that but I failed.



Here is an example of what I see:



bash-2.05$ wget https://www.facebook.com/
https://www.facebook.com/: Unknown/unsupported protocol.
bash-2.05$


Hi folks thanks for the answers, the verified the version of my wget it says as below



bash-2.05$ wget -V
GNU Wget 1.6

Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

Originally written by Hrvoje Niksic <hniksic@arsdigita.com>.


and I have no idea if my wget is compiled by SSL and the SSL is enabled or not.
Could you please let me know how to compile the wget command. I tried running the configure file and then typed make command, that gives me command not found error. Even after running the configuration file it does not give me any wget file created in /usr/local/.



bash-2.05$ cd wget-1.10.1
bash-2.05$ ./configure --prefix=/usr/local --with-ssl
bash-2.05$ make
bash: make: command not found


the version I downloaded is
wget-1.10.1.tar



wget command versionconfigure command generated log










share|improve this question
























  • Please update your question to include the exact comment being run and the exact error being displayed.
    – steve
    Jul 19 '15 at 16:54






  • 1




    Also, what operating system and version are you using?
    – mjturner
    Jul 19 '15 at 18:03










  • 1. What are you trying to get with wget, as wget normally requires a URL containing a file? 2. Is your wget compiled with SSL support? 3. Is bash-2.05 really your bash version? Mine is 4.3.33.
    – eyoung100
    Jul 19 '15 at 20:46






  • 1




    Is this an embedded system? It feels like this is actually something like a busybox version of wget.
    – roaima
    Jul 19 '15 at 21:07






  • 1




    @roaima The message I get from Busybox is wget: not an http or ftp url: … This seems to be neither GNU wget nor Busybox. Either way, it obviously doesn't support HTTPS and the solution is to install a different version or a different tool that supports HTTPS.
    – Gilles
    Jul 19 '15 at 21:57















up vote
7
down vote

favorite
2









up vote
7
down vote

favorite
2






2





I want to download https://example.com using the wget command, but it says “unsupported/unrecognized protocol”. I tried using the --secure protocol='' but that does not work.
I downloaded the tar file from GNU wget and tried configuring that but I failed.



Here is an example of what I see:



bash-2.05$ wget https://www.facebook.com/
https://www.facebook.com/: Unknown/unsupported protocol.
bash-2.05$


Hi folks thanks for the answers, the verified the version of my wget it says as below



bash-2.05$ wget -V
GNU Wget 1.6

Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

Originally written by Hrvoje Niksic <hniksic@arsdigita.com>.


and I have no idea if my wget is compiled by SSL and the SSL is enabled or not.
Could you please let me know how to compile the wget command. I tried running the configure file and then typed make command, that gives me command not found error. Even after running the configuration file it does not give me any wget file created in /usr/local/.



bash-2.05$ cd wget-1.10.1
bash-2.05$ ./configure --prefix=/usr/local --with-ssl
bash-2.05$ make
bash: make: command not found


the version I downloaded is
wget-1.10.1.tar



wget command versionconfigure command generated log










share|improve this question















I want to download https://example.com using the wget command, but it says “unsupported/unrecognized protocol”. I tried using the --secure protocol='' but that does not work.
I downloaded the tar file from GNU wget and tried configuring that but I failed.



Here is an example of what I see:



bash-2.05$ wget https://www.facebook.com/
https://www.facebook.com/: Unknown/unsupported protocol.
bash-2.05$


Hi folks thanks for the answers, the verified the version of my wget it says as below



bash-2.05$ wget -V
GNU Wget 1.6

Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

Originally written by Hrvoje Niksic <hniksic@arsdigita.com>.


and I have no idea if my wget is compiled by SSL and the SSL is enabled or not.
Could you please let me know how to compile the wget command. I tried running the configure file and then typed make command, that gives me command not found error. Even after running the configuration file it does not give me any wget file created in /usr/local/.



bash-2.05$ cd wget-1.10.1
bash-2.05$ ./configure --prefix=/usr/local --with-ssl
bash-2.05$ make
bash: make: command not found


the version I downloaded is
wget-1.10.1.tar



wget command versionconfigure command generated log







wget https






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 20 '15 at 14:00









dhag

11k32942




11k32942










asked Jul 19 '15 at 16:50









user124096

36112




36112












  • Please update your question to include the exact comment being run and the exact error being displayed.
    – steve
    Jul 19 '15 at 16:54






  • 1




    Also, what operating system and version are you using?
    – mjturner
    Jul 19 '15 at 18:03










  • 1. What are you trying to get with wget, as wget normally requires a URL containing a file? 2. Is your wget compiled with SSL support? 3. Is bash-2.05 really your bash version? Mine is 4.3.33.
    – eyoung100
    Jul 19 '15 at 20:46






  • 1




    Is this an embedded system? It feels like this is actually something like a busybox version of wget.
    – roaima
    Jul 19 '15 at 21:07






  • 1




    @roaima The message I get from Busybox is wget: not an http or ftp url: … This seems to be neither GNU wget nor Busybox. Either way, it obviously doesn't support HTTPS and the solution is to install a different version or a different tool that supports HTTPS.
    – Gilles
    Jul 19 '15 at 21:57




















  • Please update your question to include the exact comment being run and the exact error being displayed.
    – steve
    Jul 19 '15 at 16:54






  • 1




    Also, what operating system and version are you using?
    – mjturner
    Jul 19 '15 at 18:03










  • 1. What are you trying to get with wget, as wget normally requires a URL containing a file? 2. Is your wget compiled with SSL support? 3. Is bash-2.05 really your bash version? Mine is 4.3.33.
    – eyoung100
    Jul 19 '15 at 20:46






  • 1




    Is this an embedded system? It feels like this is actually something like a busybox version of wget.
    – roaima
    Jul 19 '15 at 21:07






  • 1




    @roaima The message I get from Busybox is wget: not an http or ftp url: … This seems to be neither GNU wget nor Busybox. Either way, it obviously doesn't support HTTPS and the solution is to install a different version or a different tool that supports HTTPS.
    – Gilles
    Jul 19 '15 at 21:57


















Please update your question to include the exact comment being run and the exact error being displayed.
– steve
Jul 19 '15 at 16:54




Please update your question to include the exact comment being run and the exact error being displayed.
– steve
Jul 19 '15 at 16:54




1




1




Also, what operating system and version are you using?
– mjturner
Jul 19 '15 at 18:03




Also, what operating system and version are you using?
– mjturner
Jul 19 '15 at 18:03












1. What are you trying to get with wget, as wget normally requires a URL containing a file? 2. Is your wget compiled with SSL support? 3. Is bash-2.05 really your bash version? Mine is 4.3.33.
– eyoung100
Jul 19 '15 at 20:46




1. What are you trying to get with wget, as wget normally requires a URL containing a file? 2. Is your wget compiled with SSL support? 3. Is bash-2.05 really your bash version? Mine is 4.3.33.
– eyoung100
Jul 19 '15 at 20:46




1




1




Is this an embedded system? It feels like this is actually something like a busybox version of wget.
– roaima
Jul 19 '15 at 21:07




Is this an embedded system? It feels like this is actually something like a busybox version of wget.
– roaima
Jul 19 '15 at 21:07




1




1




@roaima The message I get from Busybox is wget: not an http or ftp url: … This seems to be neither GNU wget nor Busybox. Either way, it obviously doesn't support HTTPS and the solution is to install a different version or a different tool that supports HTTPS.
– Gilles
Jul 19 '15 at 21:57






@roaima The message I get from Busybox is wget: not an http or ftp url: … This seems to be neither GNU wget nor Busybox. Either way, it obviously doesn't support HTTPS and the solution is to install a different version or a different tool that supports HTTPS.
– Gilles
Jul 19 '15 at 21:57












2 Answers
2






active

oldest

votes

















up vote
8
down vote













Solution



Verify your wget binary is compiled with SSL support enabled. My output when I try the command you gave:



$ wget https://www.facebook.com
--2015-07-19 15:27:17-- https://www.facebook.com/
Resolving www.facebook.com (www.facebook.com)... 31.13.66.1, 2a03:2880:f013:1:face:b00c:0:1
Connecting to www.facebook.com (www.facebook.com)|31.13.66.1|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://www.facebook.com/unsupportedbrowser [following]
--2015-07-19 15:27:18-- https://www.facebook.com/unsupportedbrowser
Reusing existing connection to www.facebook.com:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html’

index.html [ <=> ] 29.21K --.-KB/s in 0.04s

2015-07-19 15:27:18 (775 KB/s) - ‘index.html’ saved [29916]

$


Given no fully Qualified URL downloads the default page index.html which contains tags etc. All this page will tell me when viewed via a browser is that my browser is not supported, in other words: We don't support fetching of pages via wget.



$ eix wget

[I] net-misc/wget
Available versions: 1.16 ~1.16.1 ~1.16.2 ~1.16.3 {debug gnutls idn ipv6 nls ntlm pcre +ssl static test uuid zlib}
Installed versions: 1.16(11:25:57 AM 07/19/2015)(idn ipv6 nls pcre ssl zlib -debug -gnutls -ntlm -static -test -uuid)
Homepage: http://www.gnu.org/software/wget/
Description: Network utility to retrieve files from the WWW


Per Comment



Here's what a version output looks like, in case you've never seen Gentoo based output (Notice -DHAVE_LIBSSL):



$ wget -V
wget -V
GNU Wget 1.16 built on linux-gnu.

+digest +https +ipv6 +iri +large-file +nls -ntlm +opie -psl +ssl/openssl

Wgetrc:
/etc/wgetrc (system)
Locale:
/usr/share/locale
Compile:
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H
-DSYSTEM_WGETRC="/etc/wgetrc" -DLOCALEDIR="/usr/share/locale" -I.
-I../lib -I../lib -DHAVE_LIBSSL -march=amdfam10 -O2 -pipe
Link:
x86_64-pc-linux-gnu-gcc -DHAVE_LIBSSL -march=amdfam10 -O2 -pipe
-Wl,-O1 -Wl,--as-needed -lpcre -lssl -lcrypto -lz -lidn ftp-opie.o
openssl.o ../lib/libgnu.a

Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Please send bug reports and questions to <bug-wget@gnu.org>.




Notice that ssl does not contain a minus in the Installed Versions line from the Gentoo based output, meaning I have compiled SSL support on my Gentoo box. In order to go further, would you please update your question with your distribution.






share|improve this answer























  • wget -V should include a line showing https support. On my Mint 17 default install is returns +digest +https +ipv6 +iri +large-file +nls +ntlm +opie +ssl/openssl
    – steve
    Jul 19 '15 at 20:46










  • @steve I'll add a wget -V Something tells me there is more going on here as his bash version is 2.05...
    – eyoung100
    Jul 19 '15 at 20:49


















up vote
0
down vote













Try removing the "s"... I mean just use http.



Most of the times there is a redirection from http to https active and wget seems to work with it.



Hit the address in your browser with plain http and if you get redirected to https your wget will probably work.



So.. wget http://example.com/file






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    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',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2funix.stackexchange.com%2fquestions%2f217028%2fwget-doesnt-support-https%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








    up vote
    8
    down vote













    Solution



    Verify your wget binary is compiled with SSL support enabled. My output when I try the command you gave:



    $ wget https://www.facebook.com
    --2015-07-19 15:27:17-- https://www.facebook.com/
    Resolving www.facebook.com (www.facebook.com)... 31.13.66.1, 2a03:2880:f013:1:face:b00c:0:1
    Connecting to www.facebook.com (www.facebook.com)|31.13.66.1|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://www.facebook.com/unsupportedbrowser [following]
    --2015-07-19 15:27:18-- https://www.facebook.com/unsupportedbrowser
    Reusing existing connection to www.facebook.com:443.
    HTTP request sent, awaiting response... 200 OK
    Length: unspecified [text/html]
    Saving to: ‘index.html’

    index.html [ <=> ] 29.21K --.-KB/s in 0.04s

    2015-07-19 15:27:18 (775 KB/s) - ‘index.html’ saved [29916]

    $


    Given no fully Qualified URL downloads the default page index.html which contains tags etc. All this page will tell me when viewed via a browser is that my browser is not supported, in other words: We don't support fetching of pages via wget.



    $ eix wget

    [I] net-misc/wget
    Available versions: 1.16 ~1.16.1 ~1.16.2 ~1.16.3 {debug gnutls idn ipv6 nls ntlm pcre +ssl static test uuid zlib}
    Installed versions: 1.16(11:25:57 AM 07/19/2015)(idn ipv6 nls pcre ssl zlib -debug -gnutls -ntlm -static -test -uuid)
    Homepage: http://www.gnu.org/software/wget/
    Description: Network utility to retrieve files from the WWW


    Per Comment



    Here's what a version output looks like, in case you've never seen Gentoo based output (Notice -DHAVE_LIBSSL):



    $ wget -V
    wget -V
    GNU Wget 1.16 built on linux-gnu.

    +digest +https +ipv6 +iri +large-file +nls -ntlm +opie -psl +ssl/openssl

    Wgetrc:
    /etc/wgetrc (system)
    Locale:
    /usr/share/locale
    Compile:
    x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H
    -DSYSTEM_WGETRC="/etc/wgetrc" -DLOCALEDIR="/usr/share/locale" -I.
    -I../lib -I../lib -DHAVE_LIBSSL -march=amdfam10 -O2 -pipe
    Link:
    x86_64-pc-linux-gnu-gcc -DHAVE_LIBSSL -march=amdfam10 -O2 -pipe
    -Wl,-O1 -Wl,--as-needed -lpcre -lssl -lcrypto -lz -lidn ftp-opie.o
    openssl.o ../lib/libgnu.a

    Copyright (C) 2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later
    <http://www.gnu.org/licenses/gpl.html>.
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.

    Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
    Please send bug reports and questions to <bug-wget@gnu.org>.




    Notice that ssl does not contain a minus in the Installed Versions line from the Gentoo based output, meaning I have compiled SSL support on my Gentoo box. In order to go further, would you please update your question with your distribution.






    share|improve this answer























    • wget -V should include a line showing https support. On my Mint 17 default install is returns +digest +https +ipv6 +iri +large-file +nls +ntlm +opie +ssl/openssl
      – steve
      Jul 19 '15 at 20:46










    • @steve I'll add a wget -V Something tells me there is more going on here as his bash version is 2.05...
      – eyoung100
      Jul 19 '15 at 20:49















    up vote
    8
    down vote













    Solution



    Verify your wget binary is compiled with SSL support enabled. My output when I try the command you gave:



    $ wget https://www.facebook.com
    --2015-07-19 15:27:17-- https://www.facebook.com/
    Resolving www.facebook.com (www.facebook.com)... 31.13.66.1, 2a03:2880:f013:1:face:b00c:0:1
    Connecting to www.facebook.com (www.facebook.com)|31.13.66.1|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://www.facebook.com/unsupportedbrowser [following]
    --2015-07-19 15:27:18-- https://www.facebook.com/unsupportedbrowser
    Reusing existing connection to www.facebook.com:443.
    HTTP request sent, awaiting response... 200 OK
    Length: unspecified [text/html]
    Saving to: ‘index.html’

    index.html [ <=> ] 29.21K --.-KB/s in 0.04s

    2015-07-19 15:27:18 (775 KB/s) - ‘index.html’ saved [29916]

    $


    Given no fully Qualified URL downloads the default page index.html which contains tags etc. All this page will tell me when viewed via a browser is that my browser is not supported, in other words: We don't support fetching of pages via wget.



    $ eix wget

    [I] net-misc/wget
    Available versions: 1.16 ~1.16.1 ~1.16.2 ~1.16.3 {debug gnutls idn ipv6 nls ntlm pcre +ssl static test uuid zlib}
    Installed versions: 1.16(11:25:57 AM 07/19/2015)(idn ipv6 nls pcre ssl zlib -debug -gnutls -ntlm -static -test -uuid)
    Homepage: http://www.gnu.org/software/wget/
    Description: Network utility to retrieve files from the WWW


    Per Comment



    Here's what a version output looks like, in case you've never seen Gentoo based output (Notice -DHAVE_LIBSSL):



    $ wget -V
    wget -V
    GNU Wget 1.16 built on linux-gnu.

    +digest +https +ipv6 +iri +large-file +nls -ntlm +opie -psl +ssl/openssl

    Wgetrc:
    /etc/wgetrc (system)
    Locale:
    /usr/share/locale
    Compile:
    x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H
    -DSYSTEM_WGETRC="/etc/wgetrc" -DLOCALEDIR="/usr/share/locale" -I.
    -I../lib -I../lib -DHAVE_LIBSSL -march=amdfam10 -O2 -pipe
    Link:
    x86_64-pc-linux-gnu-gcc -DHAVE_LIBSSL -march=amdfam10 -O2 -pipe
    -Wl,-O1 -Wl,--as-needed -lpcre -lssl -lcrypto -lz -lidn ftp-opie.o
    openssl.o ../lib/libgnu.a

    Copyright (C) 2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later
    <http://www.gnu.org/licenses/gpl.html>.
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.

    Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
    Please send bug reports and questions to <bug-wget@gnu.org>.




    Notice that ssl does not contain a minus in the Installed Versions line from the Gentoo based output, meaning I have compiled SSL support on my Gentoo box. In order to go further, would you please update your question with your distribution.






    share|improve this answer























    • wget -V should include a line showing https support. On my Mint 17 default install is returns +digest +https +ipv6 +iri +large-file +nls +ntlm +opie +ssl/openssl
      – steve
      Jul 19 '15 at 20:46










    • @steve I'll add a wget -V Something tells me there is more going on here as his bash version is 2.05...
      – eyoung100
      Jul 19 '15 at 20:49













    up vote
    8
    down vote










    up vote
    8
    down vote









    Solution



    Verify your wget binary is compiled with SSL support enabled. My output when I try the command you gave:



    $ wget https://www.facebook.com
    --2015-07-19 15:27:17-- https://www.facebook.com/
    Resolving www.facebook.com (www.facebook.com)... 31.13.66.1, 2a03:2880:f013:1:face:b00c:0:1
    Connecting to www.facebook.com (www.facebook.com)|31.13.66.1|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://www.facebook.com/unsupportedbrowser [following]
    --2015-07-19 15:27:18-- https://www.facebook.com/unsupportedbrowser
    Reusing existing connection to www.facebook.com:443.
    HTTP request sent, awaiting response... 200 OK
    Length: unspecified [text/html]
    Saving to: ‘index.html’

    index.html [ <=> ] 29.21K --.-KB/s in 0.04s

    2015-07-19 15:27:18 (775 KB/s) - ‘index.html’ saved [29916]

    $


    Given no fully Qualified URL downloads the default page index.html which contains tags etc. All this page will tell me when viewed via a browser is that my browser is not supported, in other words: We don't support fetching of pages via wget.



    $ eix wget

    [I] net-misc/wget
    Available versions: 1.16 ~1.16.1 ~1.16.2 ~1.16.3 {debug gnutls idn ipv6 nls ntlm pcre +ssl static test uuid zlib}
    Installed versions: 1.16(11:25:57 AM 07/19/2015)(idn ipv6 nls pcre ssl zlib -debug -gnutls -ntlm -static -test -uuid)
    Homepage: http://www.gnu.org/software/wget/
    Description: Network utility to retrieve files from the WWW


    Per Comment



    Here's what a version output looks like, in case you've never seen Gentoo based output (Notice -DHAVE_LIBSSL):



    $ wget -V
    wget -V
    GNU Wget 1.16 built on linux-gnu.

    +digest +https +ipv6 +iri +large-file +nls -ntlm +opie -psl +ssl/openssl

    Wgetrc:
    /etc/wgetrc (system)
    Locale:
    /usr/share/locale
    Compile:
    x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H
    -DSYSTEM_WGETRC="/etc/wgetrc" -DLOCALEDIR="/usr/share/locale" -I.
    -I../lib -I../lib -DHAVE_LIBSSL -march=amdfam10 -O2 -pipe
    Link:
    x86_64-pc-linux-gnu-gcc -DHAVE_LIBSSL -march=amdfam10 -O2 -pipe
    -Wl,-O1 -Wl,--as-needed -lpcre -lssl -lcrypto -lz -lidn ftp-opie.o
    openssl.o ../lib/libgnu.a

    Copyright (C) 2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later
    <http://www.gnu.org/licenses/gpl.html>.
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.

    Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
    Please send bug reports and questions to <bug-wget@gnu.org>.




    Notice that ssl does not contain a minus in the Installed Versions line from the Gentoo based output, meaning I have compiled SSL support on my Gentoo box. In order to go further, would you please update your question with your distribution.






    share|improve this answer














    Solution



    Verify your wget binary is compiled with SSL support enabled. My output when I try the command you gave:



    $ wget https://www.facebook.com
    --2015-07-19 15:27:17-- https://www.facebook.com/
    Resolving www.facebook.com (www.facebook.com)... 31.13.66.1, 2a03:2880:f013:1:face:b00c:0:1
    Connecting to www.facebook.com (www.facebook.com)|31.13.66.1|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://www.facebook.com/unsupportedbrowser [following]
    --2015-07-19 15:27:18-- https://www.facebook.com/unsupportedbrowser
    Reusing existing connection to www.facebook.com:443.
    HTTP request sent, awaiting response... 200 OK
    Length: unspecified [text/html]
    Saving to: ‘index.html’

    index.html [ <=> ] 29.21K --.-KB/s in 0.04s

    2015-07-19 15:27:18 (775 KB/s) - ‘index.html’ saved [29916]

    $


    Given no fully Qualified URL downloads the default page index.html which contains tags etc. All this page will tell me when viewed via a browser is that my browser is not supported, in other words: We don't support fetching of pages via wget.



    $ eix wget

    [I] net-misc/wget
    Available versions: 1.16 ~1.16.1 ~1.16.2 ~1.16.3 {debug gnutls idn ipv6 nls ntlm pcre +ssl static test uuid zlib}
    Installed versions: 1.16(11:25:57 AM 07/19/2015)(idn ipv6 nls pcre ssl zlib -debug -gnutls -ntlm -static -test -uuid)
    Homepage: http://www.gnu.org/software/wget/
    Description: Network utility to retrieve files from the WWW


    Per Comment



    Here's what a version output looks like, in case you've never seen Gentoo based output (Notice -DHAVE_LIBSSL):



    $ wget -V
    wget -V
    GNU Wget 1.16 built on linux-gnu.

    +digest +https +ipv6 +iri +large-file +nls -ntlm +opie -psl +ssl/openssl

    Wgetrc:
    /etc/wgetrc (system)
    Locale:
    /usr/share/locale
    Compile:
    x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H
    -DSYSTEM_WGETRC="/etc/wgetrc" -DLOCALEDIR="/usr/share/locale" -I.
    -I../lib -I../lib -DHAVE_LIBSSL -march=amdfam10 -O2 -pipe
    Link:
    x86_64-pc-linux-gnu-gcc -DHAVE_LIBSSL -march=amdfam10 -O2 -pipe
    -Wl,-O1 -Wl,--as-needed -lpcre -lssl -lcrypto -lz -lidn ftp-opie.o
    openssl.o ../lib/libgnu.a

    Copyright (C) 2014 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later
    <http://www.gnu.org/licenses/gpl.html>.
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.

    Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
    Please send bug reports and questions to <bug-wget@gnu.org>.




    Notice that ssl does not contain a minus in the Installed Versions line from the Gentoo based output, meaning I have compiled SSL support on my Gentoo box. In order to go further, would you please update your question with your distribution.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jul 19 '15 at 21:00

























    answered Jul 19 '15 at 20:40









    eyoung100

    4,7571441




    4,7571441












    • wget -V should include a line showing https support. On my Mint 17 default install is returns +digest +https +ipv6 +iri +large-file +nls +ntlm +opie +ssl/openssl
      – steve
      Jul 19 '15 at 20:46










    • @steve I'll add a wget -V Something tells me there is more going on here as his bash version is 2.05...
      – eyoung100
      Jul 19 '15 at 20:49


















    • wget -V should include a line showing https support. On my Mint 17 default install is returns +digest +https +ipv6 +iri +large-file +nls +ntlm +opie +ssl/openssl
      – steve
      Jul 19 '15 at 20:46










    • @steve I'll add a wget -V Something tells me there is more going on here as his bash version is 2.05...
      – eyoung100
      Jul 19 '15 at 20:49
















    wget -V should include a line showing https support. On my Mint 17 default install is returns +digest +https +ipv6 +iri +large-file +nls +ntlm +opie +ssl/openssl
    – steve
    Jul 19 '15 at 20:46




    wget -V should include a line showing https support. On my Mint 17 default install is returns +digest +https +ipv6 +iri +large-file +nls +ntlm +opie +ssl/openssl
    – steve
    Jul 19 '15 at 20:46












    @steve I'll add a wget -V Something tells me there is more going on here as his bash version is 2.05...
    – eyoung100
    Jul 19 '15 at 20:49




    @steve I'll add a wget -V Something tells me there is more going on here as his bash version is 2.05...
    – eyoung100
    Jul 19 '15 at 20:49












    up vote
    0
    down vote













    Try removing the "s"... I mean just use http.



    Most of the times there is a redirection from http to https active and wget seems to work with it.



    Hit the address in your browser with plain http and if you get redirected to https your wget will probably work.



    So.. wget http://example.com/file






    share|improve this answer

























      up vote
      0
      down vote













      Try removing the "s"... I mean just use http.



      Most of the times there is a redirection from http to https active and wget seems to work with it.



      Hit the address in your browser with plain http and if you get redirected to https your wget will probably work.



      So.. wget http://example.com/file






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        Try removing the "s"... I mean just use http.



        Most of the times there is a redirection from http to https active and wget seems to work with it.



        Hit the address in your browser with plain http and if you get redirected to https your wget will probably work.



        So.. wget http://example.com/file






        share|improve this answer












        Try removing the "s"... I mean just use http.



        Most of the times there is a redirection from http to https active and wget seems to work with it.



        Hit the address in your browser with plain http and if you get redirected to https your wget will probably work.



        So.. wget http://example.com/file







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 21 at 21:18









        DimiDak

        1191




        1191






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f217028%2fwget-doesnt-support-https%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

            サソリ

            広島県道265号伴広島線

            Setup Asymptote in Texstudio