Ignore:
Timestamp:
2001-06-01T14:51:29+12:00 (23 years ago)
Author:
sjboddie
Message:

Changes to get phind working under windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/phind/client/Phind.java

    r2054 r2487  
    403403
    404404    // Build the query
    405     String query = phindcgi_address + "x=1&c=" + collection + "&d=" + classifier;
     405    String query = phindcgi_address + "pxml=1&c=" + collection + "&pc=" + classifier;
    406406
    407407    if (keyKnown) {
    408       query = query + "&n=" + word;
     408      query = query + "&ppnum=" + word;
    409409    } else {
    410       query = query + "&p=" + word;
     410      query = query + "&pptext=" + word;
    411411    }
    412412
     
    448448    }
    449449
    450     query = query + "&e=" + first_e + "&f=" + last_e
    451                       + "&h=" + first_d + "&i=" + last_d
    452                       + "&k=" + first_l + "&l=" + last_l;
     450    query = query + "&pfe=" + first_e + "&ple=" + last_e
     451                      + "&pfd=" + first_d + "&pld=" + last_d
     452                      + "&pfl=" + first_l + "&pll=" + last_l;
    453453
    454454    // Send the query to the phindcgi program
     
    497497        // there is not protocol and host
    498498        URL document = getDocumentBase();
    499         address = "http://" + document.getHost() + address;
     499        address = "http://" + document.getHost() + ":" + document.getPort() + address;
    500500    } else {
    501         // this URL is relative to the dirwectory the document is in
     501        // this URL is relative to the directory the document is in
    502502        URL document = getDocumentBase();
    503503        String directory = document.getFile();
    504504        int end = directory.lastIndexOf('/');
    505505        directory = directory.substring(0,end + 1);
    506         address = "http://" + document.getHost() + directory + address;
     506        address = "http://" + document.getHost() + ":" + document.getPort() + directory + address;
    507507
    508508    }
Note: See TracChangeset for help on using the changeset viewer.