Ignore:
Timestamp:
2017-08-04T19:05:08+12:00 (7 years ago)
Author:
ak19
Message:

Java code no longer works out what the ultimate URL to download from is, after all the redirects have been resolved. Wget seems to handle some of this, and for the rest, assume the user specificed URL is what the user is after

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/gui/DownloadPane.java

    r31851 r31852  
    572572        Download current_download = (Download)download_map.get(mode);
    573573        Argument arg_url = current_download.getArgument("url");
     574       
    574575        if(arg_url != null) { // it's null for z3950 and possibly for other downloaders
    575             String url_str = arg_url.getValue();
     576            String url_str = arg_url.getValue();   
     577           
     578            // No longer following URL redirects, since some of this has been taken care of by wget
     579            // For the rest, assume the user will get the URL right that they want to download from
     580            /*
    576581            String redirect_url_str = getRedirectURL(url_str);
    577582           
     
    582587            updateArgument(arg_url, redirect_url_str);
    583588            }
     589            */
    584590        }
     591       
    585592        getter.newDownloadJob((Download)download_map.get(mode) ,mode,proxy_url);
    586593        }
     
    815822        }
    816823
    817         str_url = getRedirectURL(str_url); // work out the real URL
     824        //str_url = getRedirectURL(str_url); // work out the real URL
    818825
    819826        server_info = new ServerInfoDialog(str_url ,proxy_url, mode,(Download)download_map.get(mode));
Note: See TracChangeset for help on using the changeset viewer.