generic_post.py -- send data/files to a server