* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: srwutil.c,v 1.23 2005-01-15 19:47:14 adam Exp $
+ * $Id: srwutil.c,v 1.27 2005-02-01 14:43:50 adam Exp $
*/
/**
* \file srwutil.c
* \brief Implements SRW/SRU utilities.
*/
+#include <stdlib.h>
#include <yaz/srw.h>
#include <yaz/yaz-iconv.h>
{
const char *content_type = z_HTTP_header_lookup(hreq->headers,
"Content-Type");
- if (content_type && !yaz_strcmp_del("text/xml", content_type, "; "))
+ if (content_type &&
+ (!yaz_strcmp_del("text/xml", content_type, "; ") ||
+ !yaz_strcmp_del("text/plain", content_type, "; ")))
{
char *db = "Default";
const char *p0 = hreq->path, *p1;
{
char *db = "Default";
const char *p0 = hreq->path, *p1;
+#if HAVE_XML2
const char *operation = 0;
char *version = 0;
char *query = 0;
char *maximumTerms = 0;
char *responsePosition = 0;
char *extraRequestData = 0;
+#endif
char **uri_name;
char **uri_val;