00];
close(outfd[0]); // These are being used by the child
write(outfd[1],"s=444", 5); // Write to child's stdin
close(outfd[1]);
close(infd[1]);
output[read(infd[0],output,1000)] = 0; // Read from child's stdout
printf("%s&qu
Hi,
I'm writing a simple httpd with php support via cgi/fastcgi. I tried several
ways to pass POST data to php-cgi (by writing to child process's stdin from
parent process), however, none of them worked
Here's the most simple not working example:
$ export CONTENT_LENGTH=4; export HTTP_METHOD=POS
2 matches
Mail list logo