There is a command line tool called tbzuploader
tbzuploader - Generic HTTP Uploading
A lot of daily work is based on regular files.
tbzuploader is a command line tool which detects uploadable files and
posts them via HTTP while conforming to the standardized HTTP Status
Codes. Upload Protocol
tbzuploader conforms to the generally accepted upload protocol. 201
If the HTTP upload is successful, the server responds with "201
Created". The files will then be moved to a "done" directory. 400 Bad
If the HTTP upload is not successful and it is a client error (such as
wrong files or corrupted files), the server responds with "400 Bad
Request". The files will then be moved to a "failed" directory.
In case you want to inform an admin, specify an email address which
gets notified in that case, because failed files won't be retried. 500
Internal Server Error and others
If the HTTP upload was not successful (such as an login page, outage,
programming error or overload), the server responds with other status
codes (such as 500 Internal Server Error). tbzuploader will then retry
to post the files next time.
pairs of arbitrary size (tuples, triplets, etc.)
For example you have four files: a.pdf, a.xml, b.pdf, b.xml
The first upload should take a.pdf and a.xml, and the second upload b.pdf and b.xml.
See the docs for --patterns.
mail to admin if broken files are uploaded