Use term Windows rather than win32
[yaz-moved-to-github.git] / zoom / zoomtst1.c
index 8369f63..067803d 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2012 Index Data
+ * Copyright (C) Index Data
  * See the file LICENSE for details.
  */
 
@@ -29,11 +29,14 @@ int main(int argc, char **argv)
         exit (2);
     }
 
+    ZOOM_connection_option_set(z, "saveAPDU", "1");
     r = ZOOM_connection_search_pqf (z, argv[2]);
     if ((error = ZOOM_connection_error(z, &errmsg, &addinfo)))
         fprintf (stderr, "Error: %s (%d) %s\n", errmsg, error, addinfo);
     else
         printf ("Result count: %ld\n", (long) ZOOM_resultset_size(r));
+    puts("APDUlog");
+    puts(ZOOM_connection_option_get(z, "APDU"));
     ZOOM_resultset_destroy (r);
     ZOOM_connection_destroy (z);
     exit (0);