For the last week or so, I've been trying to figure out how to pass GET and POST data to PHP CGI scripts via the command line. After finally finding out that GET is passed through environment variables and POST is passed through STDIN, I managed to feed my script GET data through Command Prompt (I use Windows Vista (I know, it sucks.)), and I got it to accept POST data through STDIN. But even though it accepted the data, it obviously didn't use it when it processed the script, because it returned an error message stating that the subscript did not exist. I got the same error when I tried doing it using an AutoIt script.
What am I doing wrong? I'm pretty sure that I set all the non-optional environment variables properly!
Please help me!
What am I doing wrong? I'm pretty sure that I set all the non-optional environment variables properly!
Please help me!