I am trying to send a get or a post through a command-line argument. That is test the script in the command line before I test through a browser (the server has issues). I tried searching online, and I suppose I was probably using incorrect terminology because I got nothing. I know this is possible because I saw someone do it. I just don’t remember how it was done.
Thanks! 🙂
Are you using the standard CGI module?
For example, with the following program (notice
-debugin the arguments touse CGI)you feed it parameters on the command line:
You can also do so via the standard input: