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

File: [local] / OpenXM / src / kan96xx / plugin / oxcgi.h (download)

Revision 1.2, Fri Sep 24 08:35:47 2004 UTC (19 years, 8 months ago) by takayama
Branch: MAIN
Changes since 1.1: +18 -1 lines

Modules to work for CGI.
 URL encoding <---> keyValue pair
   ( cgiUrlEncodingKeyValuePair, cgiKeyValuePairToUrlEncoding )
 HTTP <---> keyValue pair
   ( cgiHttpToKeyValuePair, cgiKeyValuePairToHttpString )

/* $OpenXM: OpenXM/src/kan96xx/plugin/oxcgi.h,v 1.2 2004/09/24 08:35:47 takayama Exp $ */

/* ----- data conversion : urlEncoding <---> keyValue pair */
struct object cgiUrlEncodingToKeyValuePair(char *s);
char *cgiKeyValuePairToUrlEncoding(struct object ob);
struct object cgiKeyValuePairToUrlEncodingString(struct object ob);
int cgiKeyValuePairToUrlEncodingFile2(struct object ob,FILE2 *fp);
char *byteArrayToUrlEncoding(unsigned char *s,int size);
struct object urlEncodedStringToObj(char *s,int vstart,int vend,int mode);

/* ------- HTML header <---> keyValue pair  */
struct object cgiHttpToKeyValuePair(char *s,int size);
char *cgiKeyValuePairToHttp(struct object ob,int *sizep);
struct object cgiKeyValuePairToHttpString(struct object ob);
int cgiKeyValuePairToHttpFile2(struct object ob, FILE2 *fp);

/* ------- misc ------------------- */
int checkKeyValuePairFormat(struct object ob,char *msg);