[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] Check for SSL support in wget

From: Martin Paul
Subject: [Bug-wget] Check for SSL support in wget
Date: Thu, 26 Feb 2009 11:16:47 +0100
User-agent: Thunderbird (X11/20080531)


I'm using wget in a script, and want to use HTTPS instead of HTTP if wget supports it. Therefore I'm looking for a supported way to determine whether a certain instance of wget supports HTTPS.

Looking through the source of various wget versions, I found this to be one way:

  wget --help | grep HTTPS

This works because wget (>= 1.10) only shows the HTTPS options if it's compiled with SSL support. As far as older releases are concerned, I could check for the old deprecated SSL options or always use http with those old binaries.

Is there a better way to perform the check I need? Is the method I use now supposed to be supported in ongoing versions of wget?

Thanks in advance! BTW, I'm not subscribed to the list, so a Cc: would be nice.

                         Martin Paul | Systems Administrator
   Institute of Scientific Computing | address@hidden
 Nordbergstrasse 15/C/3, A-1090 Wien | Tel: 01 4277 39403
        http://www.par.univie.ac.at/ | Fax: 01 4277 9394

reply via email to

[Prev in Thread] Current Thread [Next in Thread]