Changeset 13809


Ignore:
Timestamp:
2007-01-25T17:09:04+13:00 (17 years ago)
Author:
mdewsnip
Message:

All requests to gliserver.pl now include a timestamp as the "ts" argument.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/remote/RemoteGreenstoneServer.java

    r13597 r13809  
    985985    System.err.println("gliserver args: " + cgi_args);
    986986
    987     // Add username and password
     987    // Add username and password, and a timestamp
    988988    cgi_args += "&un=" + remote_greenstone_server_authentication.getUserName();
    989989    cgi_args += "&pw=" + new String(remote_greenstone_server_authentication.getPassword());
     990    cgi_args += "&ts=" + System.currentTimeMillis();
    990991
    991992    URL download_url = new URL(download_cgi);
     
    10371038    System.err.println("gliserver args: " + cgi_args);
    10381039
    1039     // Add username and password
     1040    // Add username and password, and a timestamp
    10401041    cgi_args += "&un=" + remote_greenstone_server_authentication.getUserName();
    10411042        cgi_args += "&pw=" + new String(remote_greenstone_server_authentication.getPassword());
     1043    cgi_args += "&ts=" + System.currentTimeMillis();
    10421044
    10431045    URL gliserver_url = new URL(gliserver_url_string + "?" + cgi_args);
     
    10721074    System.err.println("gliserver args: " + cgi_args);
    10731075
    1074     // Add username and password
     1076    // Add username and password, and a timestamp
    10751077    cgi_args += "&un=" + remote_greenstone_server_authentication.getUserName();
    10761078    cgi_args += "&pw=" + new String(remote_greenstone_server_authentication.getPassword());
     1079    cgi_args += "&ts=" + System.currentTimeMillis();
    10771080
    10781081    // Open a HTTP connection to the URL
  • trunk/gsdl/cgi-bin/gliserver.pl

    r13794 r13809  
    5656    # Remove the un argument (since this can mess up other scripts)
    5757    $gsdl_cgi->delete("un");
     58
     59    # Get then remove the ts (timestamp) argument (since this can mess up other scripts)
     60    my $timestamp = $gsdl_cgi->clean_param("ts");
     61    $gsdl_cgi->delete("ts");
    5862
    5963    if ($cmd eq "delete-collection") {
Note: See TracChangeset for help on using the changeset viewer.