bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] [Bug-Wget] Use of maltipart/form-data when using body-fil


From: Tim Rühsen
Subject: Re: [Bug-wget] [Bug-Wget] Use of maltipart/form-data when using body-file command
Date: Sun, 14 Apr 2013 21:52:52 +0200
User-agent: KMail/1.13.7 (Linux/3.7-trunk-amd64; KDE/4.8.4; x86_64; ; )

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

[Prev in Thread] Current Thread [Next in Thread]