WGET CGI Post

Post upload using wget

I like to use wget in shell scripts to upload files to remote servers over http.
I use this when it isn't convenient to use scp.

This is not secure if you don't pay attention.

This requires a tiny Python script on the client side and a little PHP on the server side.
The Python script is used to encode the file to be uploaded so that wget can send it as a POST request.
It's a very simple script, so you can easily replace it with the language of your choice (Perl or maybe even sh).

Step 1. On the client side create a Python script called "postencode.py":