Manual HTTP(S) request

wget has a --post-file option which should work for you.

Edit: Also, there's Ncat, which you would use in a similar fashion to Randolf Richardson's telnet suggestion, except that it also supports SSL/HTTPS:

ncat -C --ssl www.example.com 443 < input.txt > output.txt

For HTTP (not HTTPS), one alternative to the "wget" command that comes to mind is to use telnet as follows:

  • telnet hostname 80 < input.txt > output.txt

The file "input.txt" is your list of pre-set commands that you wish to feed to the host at hostname and the file "output.txt" will store the response.