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/DownloadJob.java

    r31722 r31820  
    623623            // Specify proxies as environment variables
    624624            // Need to manually specify GSDLHOME and GSDLOS also
    625             env = new String[4];
     625            env = new String[5];
    626626                    proxy_url = proxy_url.replaceAll("http://","");
    627627            env[0] = "http_proxy=http://"+proxy_url;
    628             env[1] = "ftp_proxy=ftp://"+proxy_url;
    629             env[2] = "GSDLHOME=" + Configuration.gsdl_path;
    630             env[3] = "GSDLOS=" + Gatherer.client_operating_system;
     628            env[1] = "https_proxy=http://"+proxy_url; // HTTP protocol for https:// too
     629                        // see also https://wiki.archlinux.org/index.php/proxy_settings
     630            env[2] = "ftp_proxy=ftp://"+proxy_url;
     631            env[3] = "GSDLHOME=" + Configuration.gsdl_path;
     632            env[4] = "GSDLOS=" + Gatherer.client_operating_system;
    631633
    632634            prcs = new SafeProcess(cmd, env, null);
Note: See TracChangeset for help on using the changeset viewer.