You might take a look at the wget program specially at the --post-file=file option. I have never used wget like that but from the man page it looks that it might do what you want.
You'll find wget in the "
AIX Toolbox for Linux Applications". IBM AIX Toolbox for Linux Applications - GNU and open source tools for AIX