<title>Europagate WWW index</title>
</head>
<body>
-<h2>Europagate WWW index, $Id: egwindex.html,v 1.6 1995/11/08 12:42:16 adam Exp $</h2>
+<h2>Europagate WWW index, $Id: egwindex.html,v 1.7 1996/01/08 08:42:12 adam Exp $</h2>
<p>
z39 targets:
<a href="http://localhost/cgi-bin/egwcgi/egwirtcl/targets.egw">targets.egw</a>
-(experimental) <br>
+(with
+ <a href="http://localhost/cgi-bin/egwcgi/egwirtcl/targets.egw/1+1">debug</a>)
+<br>
Multiple z39 targets:
- <a href="http://localhost/cgi-bin/egwcgi/egwirtcl/mtargets.egw">mtargets.egw</a> (very experimental)
+ <a href="http://localhost/cgi-bin/egwcgi/egwirtcl/mtargets.egw">mtargets.egw</a>
+(with
+<a href="http://localhost/cgi-bin/egwcgi/egwirtcl/mtargets.egw/1+1">debug</a>)
<br>
</body>
</html>
</head>
<body>
{
-# $Id: mquery.egw,v 1.7 1996/01/03 15:19:37 adam Exp $
+# $Id: mquery.egw,v 1.8 1996/01/08 08:42:13 adam Exp $
if {[info commands saveState] == ""} {
source z39util.tcl
}
html {<form action="http:} $env(SCRIPT_NAME)
- html / $sessionId {/msearch.egw/} $setNo {" method=post>} \n
+ html / $sessionId {/msearch.egw/} $setNo {" method=get>} \n
set phost {}
set i 0
<html>
{
-# $Id: msearch.egw,v 1.9 1996/01/04 10:40:00 adam Exp $
+# $Id: msearch.egw,v 1.10 1996/01/08 08:42:13 adam Exp $
if {[info commands saveState] == ""} {
source z39util.tcl
html "Error</h3>\n<dd>NSD$code: $msg: $addinfo"
} else {
set r [z39$i.$setNo resultCount]
- html "$r hits</h3>\n<dd><ul>\n"
+ html "$r hits</h3>\n<dd>\n<ul>\n"
display-rec 1 $hist($setNo,$i,offset) display-brief $i
html "</ul>"
<html>
{
-# $Id: mtargets.egw,v 1.8 1996/01/03 15:19:38 adam Exp $
+# $Id: mtargets.egw,v 1.9 1996/01/08 08:42:14 adam Exp $
set setNo 1
source /usr/local/etc/httpd/conf/ztargets.conf
if {[info commands saveState] == ""} {
<h2>Choose one or more Z39.50 targets</h2>
{
html {<form action="http:} $env(SCRIPT_NAME)
- html / $sessionId {/mquery.egw/} $setNo {" method=post><br>} \n
+ html / $sessionId {/mquery.egw/} $setNo {" method=get><br>} \n
html "<dl>\n"
foreach t [array names targets] {
html {<dt>} [ lindex $targets($t) 0]
</head>
<body>
{
-# $Id: query.egw,v 1.25 1996/01/04 10:40:00 adam Exp $
+# $Id: query.egw,v 1.26 1996/01/08 08:42:15 adam Exp $
if {[info commands saveState] == ""} {
source z39util.tcl
}
html {<form action="http:} $env(SCRIPT_NAME)
- html / $sessionId {/search.egw/} $setNo {" method=post>} \n
+ html / $sessionId {/search.egw/} $setNo {" method=get>} \n
set nodb [llength $databases]
if {$nodb > 1} {
if {$nodb > 2} {
<html>
{
-# $Id: search.egw,v 1.24 1996/01/05 16:35:01 adam Exp $
+# $Id: search.egw,v 1.25 1996/01/08 08:42:17 adam Exp $
proc start-scan {scanNo cache dir} {
global sessionId
}
set hist($setNo,query) $query
} else {
+ if {![info exists hist($setNo,scan)]} return
if {$hist($setNo,scan) > 0} {
set scanNo [lindex $sessionParms 1]
set dir [lindex $sessionParms 2]
html "<h3>Debug information</h3>\n"
html "sessionId: $sessionId <br>\n"
html "sessionParms: $sessionParms <br>\n"
- foreach e {SERVER_NAME PATH_INFO SCRIPT_NAME} {
- html $e {: } $env($e) {<br>} \n
+ foreach n [array names env] {
+ html "env($n) = " $env($n) " <br>\n"
}
html "form: " [wform] " <br>\n"
html "target: " $host " <br>\n"
* USE OR PERFORMANCE OF THIS SOFTWARE.
*
* $Log: wcgi.c,v $
- * Revision 1.10 1996/01/05 16:21:20 adam
+ * Revision 1.11 1996/01/08 08:42:19 adam
+ * Handles method GET.
+ *
+ * Revision 1.10 1996/01/05 16:21:20 adam
* Bug fix: shell (wproto) sometimes closed server FIFO before cgi
* program opened it - solution: cgi sends OK when response has been read.
*
}
}
+#if 0
+static void print_environ (void)
+{
+ extern char **environ;
+ int i;
+
+ for (i = 0; environ[i]; i++)
+ gw_log (GW_LOG_DEBUG, prog, "e: %s", environ[i]);
+}
+#endif
+
/*
* NOTE: In the (perhaps odd) terminology used within this software,
* the 'server' is the present program, which is executed by the httpd
strcpy(p, serverp);
p += strlen(p) + 1;
strcpy(p, path_info);
+ gw_log (GW_LOG_DEBUG, prog, "P:%s", p);
p += strlen(p) + 1;
*(p++) = '\0'; /* no envvars tranferred at present */
if ((t = getenv("CONTENT_LENGTH")) && (data = atoi(t)) > 0)
i += j;
}
}
- p += data;
- *(p++) = '\0';
+ else if ((t = getenv("QUERY_STRING")))
+ {
+ strcpy (p, t);
+ data = strlen(p);
+ }
+ p[data] = '\0';
+ gw_log (GW_LOG_DEBUG, prog, "C:%s", p);
+ p += data+1;
data = (p - combuf);
memcpy(combuf, &data, sizeof(data));
gw_log (GW_LOG_DEBUG, prog, "Writing data");