Am Sonntag, 14. April 2013 schrieb Darshit Shah:
> Assuming that my previous patch adding --method, --body-file and
> --body-data options is accepted and merged into master,
> I wanted to propose that we use Content-Type: multipart/form-data and send
> the whole file as-is when using the --body-file option.
> This allows us to add the long missing functionality to send files as
> attachments through wget, without having to change the working of the old
> options.

Why not look at curl (see --form) and decide, if it is the optimum or if there 
is a better way for the user to specify what he wants to upload.
And then implement the best option syntax.

> The only problem I currently see here is that there remains no way for a
> user to send body-data in a way that is cannot be seen by another user who
> can run ps.

This is a different problem and could be solved by extending the -e option:
a leading special character could say, the following characters are a filename. 
Then parse that file for 'commands' (aka options).

Regards, Tim

Reply via email to