Diff for /libaitwww/example/test.c between versions 1.1.2.1 and 1.1.2.2

version 1.1.2.1, 2012/03/09 09:38:55 version 1.1.2.2, 2012/03/09 10:03:21
Line 6 Line 6
 int  int
 main()  main()
 {  {
        int i;        int ret;
        cgi_t *cgi;        cgi_t *cgi, *cgi1;
   
         putenv("QUERY_STRING=test1=abra+kadabra&testche=piuk%20mdaa");          putenv("QUERY_STRING=test1=abra+kadabra&testche=piuk%20mdaa");
         putenv("CONENT_LENGTH=390");          putenv("CONENT_LENGTH=390");
Line 18  main() Line 18  main()
                 return 1;                  return 1;
         }          }
   
        /*        printf("%s\n%s\n", www_getValue(cgi, "testche"), www_getValue(cgi, "test1"));
        printf("%s\n%s\n", cgigetvalue("something"), cgigetvalue("somethingelse"));        cgi1 = www_parseQuery("blahA=this is a string&blahB=this is another string");
        cginewquerystr("blaha=this is a string&blahb=this is another string");        if (!cgi1) {
        printf("\n%s\n%s\n", cgigetvalue("blaha"), cgigetvalue("blahb"));                printf("Error:: #%d - %s\n", www_GetErrno(), www_GetError());
                 www_closeCGI(&cgi);
                 return 2;
         }
         printf("\n%s\n%s\n", www_getValue(cgi1, "blahA"), www_getValue(cgi1, "blahB"));
   
        cgiclose();        www_closeCGI(&cgi);
        cginewquerystr("tmpa=another kool string&tmpb=and again");
        printf("\n%s\n%s\n", cgigetvalue("tmpa"), cgigetvalue("tmpb"));        www_addValue(cgi1, "oho", "boho");
        i=mail("John-Mark Gurney <gurney_j@resnet.uoregon.edu>", "John-Mark Gurney <gurney_j@localhost>", "Test", "this is a test, $tmpa and other junk $tmpb");        printf("\n%s\n", www_getValue(cgi1, "oho"));
         www_delPair(cgi1, "oho");
         /*
         printf("\n%s\n", www_getValue(cgi1, "oho"));
         www_delPair(cgi1, "oho");
         */          */
   
        www_closeCGI(&cgi);        www_closeCGI(&cgi1);
 
         return 0;          return 0;
 }  }

Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>