#include #include #include int main( int argc, char **argv ) { char post_string[1024]; char *p; fscanf( stdin,"%s",post_string ); fprintf( stdout,"Content-type: text/plain\n\n" ); fprintf( stdout,"post_string=[%s]\n",post_string ); p = strtok( post_string,"&" ); while ( p != NULL ) { fprintf( stdout,"p=[%s]\n",p ); p = strtok( NULL,"&" ); } }