head	1.1;
access;
symbols
	tonic_4:1.1
	tonic_3:1.1
	tonic_2:1.1
	demo:1.1.0.2
	design_report:1.1;
locks; strict;
comment	@ * @;


1.1
date	95.12.07.22.36.55;	author hartmans;	state Exp;
branches;
next	;


desc
@Test parse_query
@


1.1
log
@* Add test_qparse a test driver for parse_query and unescape_uri
* Fix bugs in parse_query and unescape_uri
@
text
@#include <6170.h>
#include <ps5/url_ops.h>


int main(int argc, char **argv) {
  if (argc != 2)
    {
      cerr << "Usage: "<<argv[0]<<": query_string\n";
    }
  string q = argv[1];
      map <string,string> *m = parse_query(q);
      if (m) {
      hash_generator <string,string> *g = m->mappings();
      string key;
     while (g->get(key)) {
	cout <<key<<"=> "<<g->value()<<"\n";
      }
    }
      else cout <<"ERROR parsing\n";
    }
  
@
