0

I'm running a web server. I'm using CGI, specifically C: I compile .c files into .out files, and then rename them to .cgi. I'm having quite some trouble reading GET and POST data: after dumping argv I noticed that GET data appears on either argv[25] or argv[26], quite randomly - I didn't check POST data.
So the question is, how can a C program read GET or POST data through CGI?

Giulio Muscarello
  • 1,312
  • 2
  • 12
  • 33

1 Answers1