- Timestamp:
- 2017-08-02T20:17:30+12:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/gui/DownloadPane.java
r31839 r31843 55 55 import org.greenstone.gatherer.util.StaticStrings; 56 56 import org.greenstone.gatherer.util.Utility; 57 import org.greenstone.gatherer.download.URLConnectionManager; 57 58 import org.greenstone.gatherer.download.Download; 58 59 import org.greenstone.gatherer.download.DownloadScrollPane; … … 616 617 if(url_str.startsWith("http:") || url_str.startsWith("https:")) { // only test http urls 617 618 try { 618 URL url = new URL(url_str); 619 if(this.proxyObject == null) { 620 connection = (HttpURLConnection)url.openConnection(); //new HttpURLConnection(url); 621 } else { 622 connection = (HttpURLConnection)url.openConnection(proxyObject); 623 } 619 // URLConnectionManager class has special handling for https URLs, 620 // so you can control whether you want it to check an HTTPS site's security certificates for you or not 621 boolean noCheckCertificates = true; 622 connection = (HttpURLConnection)URLConnectionManager.getConnection(url_str, this.proxyObject, noCheckCertificates); 623 624 624 // don't let it automatically follow redirects, since we want to 625 625 // find out whether we are dealing with redirects in the first place … … 700 700 } 701 701 702 702 // TODO: Still need to read up on and test how to set wget proxy on windows 703 // Need to be on a windows machine that requires proxy, and get wget to work on cmdline 704 // If that works, then need to check https URLS also work. 705 // See https://superuser.com/questions/526710/how-to-set-http-proxy-address-for-wget-under-windows 703 706 private boolean checkProxy(){ 704 707
Note:
See TracChangeset
for help on using the changeset viewer.