Menu

#31 FORM POST data to cgi not working

open
nobody
boa (32)
5
2005-04-22
2005-04-22
Anonymous
No

Attempting to read standard input from a CGI program
(written in C) is failing.

The problem occurs when using the POST method from a
FORM to call the CGI program. CONTENT_LENGTH is set
correctly, although no data is available on the pipe
(i.e. stdin). The same html/cgi works corectly under
apache2.

However, when passing information to the CGI using <A
HREF="test.cgi?blah=foo">, the information is correctly
piped to the CGI stdin.

I first saw the problem on uClinux, and tested further
using 0.94.13 and 0.94.14 under Fedora Core 3.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    btw my contact email is alenard@gmail.com

     
  • Nobody/Anonymous

    Logged In: NO

    This problem is caused by SELinux.

     

Log in to post a comment.