How about a simple command line like
for file in *.txt; do POST http://host.domain.com < "$file"; sleep 5; done
The POST
utility comes from the Ubuntu package libwww-perl
but of course there are dozens of similar command line utilities which offer POSTing of contents to a given URL (wget
, curl
, …).