Menu

wget: unable to resolve host address

Help
info
2010-11-09
2012-07-26
  • info

    info - 2010-11-09

    I'm using GNU Wget 1.11.4 for Windows.

    It seems that wget cannot download from https:// links in my case, but it
    works for http://, for instance:

    C:\test>wget -rm --proxy=on --proxy-user=<my_password> --proxy-password=<my_username> [url]http://google.com[/url]
    --2010-11-09 18:48:10--  [url]http://google.com/[/url]
    Connecting to 10.0.1.3:8080... connected.
    Proxy request sent, awaiting response... 301 OK
    Location: [url]http://www.google.com/[/url] [following]
    --2010-11-09 18:48:11--  [url]http://www.google.com/[/url]
    Connecting to 10.0.1.3:8080... connected.
    Proxy request sent, awaiting response... 302 Found
    Location: [url]http://www.google.it/[/url] [following]
    --2010-11-09 18:48:11--  [url]http://www.google.it/[/url]
    Connecting to 10.0.1.3:8080... connected.
    Proxy request sent, awaiting response... 200 OK
    Length: unspecified [text/html]
    Last-modified header missing -- time-stamps turned off.
    --2010-11-09 18:48:11--  [url]http://www.google.it/[/url]
    Connecting to 10.0.1.3:8080... connected.
    Proxy request sent, awaiting response... 200 OK
    Length: unspecified [text/html]
    Saving to: `www.google.it/index.html'
    
        [ <=>                                   ] 8,950       --.-K/s   in 0.07s
    
    2010-11-09 18:48:11 (131 KB/s) - `www.google.it/index.html' saved [8950]
    
    FINISHED --2010-11-09 18:48:11--
    Downloaded: 1 files, 8.7K in 0.07s (131 KB/s)
    

    When I'm trying to download something from https-like link I get an error:

    C:\test>wget -rm --proxy=on --proxy-user=<my_username> --proxy-password=<my_password>
     [url]https://sourceforge.net[/url]
    --2010-11-09 18:53:14--  [url]https://sourceforge.net/[/url]
    Resolving sourceforge.net... failed: Unknown host.
    [b]wget: unable to resolve host address `sourceforge.net'[/b]
    

    The error might be connected with the fact that my Internet connection goes
    through a proxy server.

    Am I missing something?(I've also tried different https options for wget like
    --secure-protocol=auto etc.)

    Could someone plz help me to solve this problem?

    keywords: wget https proxy

     
  • Allan

    Allan - 2010-11-10

    wget uses Openssl for secure connections so you might be better able to
    troubleshoot this if you have a standalone version of Openssl installed. I
    find it helpful to use the Gnutls package included tools. Gnutls4win:

    http://josefsson.org/gnutls.html

    Otherwise as a workaround just use a web browser to download files.

     
  • info

    info - 2010-11-10

    I downloaded wget from here http://users.ugent.be/~bpuype/wget/, MS Visual C++ and linked with OpenSSL
    0.9.8k
    . Probably the problem is in OpenSSL 0.9.8k part of the build.

     
  • Allan

    Allan - 2010-11-12

    I downloaded wget from here http://users.ugent.be/~bpuype/wget/, MS Visual C++ and linked with OpenSSL 0.9.8k.
    Probably the problem is in OpenSSL 0.9.8k part of the build.

    Sorry, I wrongly assumed you were reporting a problem with the Gnuwin32 build
    of wget. I will tell you that I have installed Openssl 0.9.8n (but not version
    1.0) with Visual C++ 2008 EE so it is not very hard to build as a standalone
    program. The older versions of Openssl have a security issue which affects
    wget. But you may be correct that it could be related to your network
    configuration.

     
MongoDB Logo MongoDB