in reply to Can a POST command (with a file attachment) be simulated via the terminal?
If you want to run your script on some kind of server, you can automate the POST request via curl, wget or a Perl program.
If you want to run the script as a CGI script from the command line, you can supply the parameters on the command line:
perl myscript.cgi userid=5378 username=Corion
If you use some module other than CGI, please tell us which module you're using and also consider posting a relevant short self-contained example so we can easily try out and verify our approaches.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can a POST command (with a file attachment) be simulated via the terminal?
by Danny (Chaplain) on Jun 05, 2024 at 14:01 UTC |