[BACK]Return to oxcgi.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / kan96xx / plugin

Diff for /OpenXM/src/kan96xx/plugin/oxcgi.c between version 1.10 and 1.11

version 1.10, 2005/07/03 11:08:54 version 1.11, 2020/10/06 11:33:47
Line 1 
Line 1 
 /* $OpenXM: OpenXM/src/kan96xx/plugin/oxcgi.c,v 1.9 2005/06/16 05:07:24 takayama Exp $ */  /* $OpenXM: OpenXM/src/kan96xx/plugin/oxcgi.c,v 1.10 2005/07/03 11:08:54 ohara Exp $ */
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
Line 11 
Line 11 
 static int ppp(char *s,int kstart,int kend, int vstart, int vend);  static int ppp(char *s,int kstart,int kend, int vstart, int vend);
 static int cgiHex(int p);  static int cgiHex(int p);
   
 static test1();  static void test1();
 static test2();  static void test2();
 static test3();  static void test3();
 static test4();  static void test4();
   
 /* main() {KSstart();test4();} */  /* main() {KSstart();test4();} */
   
Line 234  static int ppp(char *s,int kstart,int kend, int vstart
Line 234  static int ppp(char *s,int kstart,int kend, int vstart
     printf("\n");      printf("\n");
   }    }
 }  }
 static test1() {  static void test1() {
   char s[1000];    char s[1000];
   cgiUrlEncodingToKeyValuePair("http://hoge.hoge?name=1231232&hoge=asdfsdf&foo=asdfasdf");    cgiUrlEncodingToKeyValuePair("http://hoge.hoge?name=1231232&hoge=asdfsdf&foo=asdfasdf");
   cgiUrlEncodingToKeyValuePair("http://hoge.hoge?name=1231232&hoge=&foo=asdfasdf&");    cgiUrlEncodingToKeyValuePair("http://hoge.hoge?name=1231232&hoge=&foo=asdfasdf&");
   scanf("%s",s);    scanf("%s",s);
   cgiUrlEncodingToKeyValuePair(s);    cgiUrlEncodingToKeyValuePair(s);
 }  }
 static test2() {  static void test2() {
   char s[1000];    char s[1000];
   struct object ob = OINIT;    struct object ob = OINIT;
   ob=cgiUrlEncodingToKeyValuePair("http://hoge.hoge?name=1231232&hoge=asdfsdf&foo=asdfasdf");    ob=cgiUrlEncodingToKeyValuePair("http://hoge.hoge?name=1231232&hoge=asdfsdf&foo=asdfasdf");
Line 253  static test2() {
Line 253  static test2() {
   printObject(ob,1,stdout);    printObject(ob,1,stdout);
 }  }
   
 static test4() {  static void test4() {
   char s[1000];    char s[1000];
   struct object ob = OINIT;    struct object ob = OINIT;
   char *ts;    char *ts;
Line 498  int cgiKeyValuePairToHttpFile2(struct object ob,FILE2 
Line 498  int cgiKeyValuePairToHttpFile2(struct object ob,FILE2 
 }  }
   
   
 static test3() {  static void test3() {
   char *s;    char *s;
   struct object ob = OINIT;    struct object ob = OINIT;
   s = "Pragma: no-cache\nContent-Length:  2915\nContent-Type: text/html\nConnection: close\n\n                <DIV class=Section1> \n    <P class=MsoNormal \n   style=\"mso-list: none; mso-list-ins: \" 19991102T2025\">&nbsp;\n      </P> ";    s = "Pragma: no-cache\nContent-Length:  2915\nContent-Type: text/html\nConnection: close\n\n                <DIV class=Section1> \n    <P class=MsoNormal \n   style=\"mso-list: none; mso-list-ins: \" 19991102T2025\">&nbsp;\n      </P> ";

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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