Ignore:
Timestamp:
2017-07-24T21:45:30+12:00 (7 years ago)
Author:
ak19
Message:

The changes necessary for GLI's Java code to work properly with a wget that can handle https. Next step is to compile up wget with open_ssl so that it supports https. So far tested against the system wget (which supports https) after copying this into the GS2 location in gs2build/bin/linux, since that's the location which GS uses to load wget from.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/download/ServerInfoDialog.java

    r31636 r31820  
    115115            // Specify proxies as environment variables
    116116            // Need to manually specify GSDLHOME and GSDLOS also
    117             env = new String[4];
     117            env = new String[5];
    118118                    proxy_url = proxy_url.replaceAll("http://","");
    119119            env[0] = "http_proxy=http://"+proxy_url;
    120             env[1] = "ftp_proxy=ftp://"+proxy_url;
    121             env[2] = "GSDLHOME=" + Configuration.gsdl_path;
    122             env[3] = "GSDLOS=" + Gatherer.client_operating_system;
     120            env[1] = "https_proxy=http://"+proxy_url; // yes, HTTP protocol for https:// too
     121                           // see also https://wiki.archlinux.org/index.php/proxy_settings
     122            env[2] = "ftp_proxy=ftp://"+proxy_url;
     123            env[3] = "GSDLHOME=" + Configuration.gsdl_path;
     124            env[4] = "GSDLOS=" + Gatherer.client_operating_system;
    123125            prcs = new SafeProcess(command, env, null);
    124126        }
Note: See TracChangeset for help on using the changeset viewer.