[Top][All Lists]

[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: Giuseppe Scrivano
Subject: Re: [Bug-wget] [Bug-Wget] Use of maltipart/form-data when using body-file command
Date: Sun, 14 Apr 2013 20:17:53 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Darshit Shah <address@hidden> writes:

>     this change will break backward compatibility, we need a new option for
>     that and leave the default unchanged.
> I am not suggesting that we change the working of --post-file and --post-data 
> commands. Unlike the patch I just submitted, we could could de-couple the 
> --post-file,
> --post-data method and the --body-file --body-data methods, so that the older 
> --post-file/data methods work in exactly the same way, but only the NEW 
> --body- methods
> change.

I don't think this is a good idea.  It will create confusion, I prefer
them to work exactly in the same way so one day we can drop the --post-*

>     How do you expect the file to be in this case?  Will wget do any 
> filtering?
> The file should be read in binary mode and sent as-is. However, I am
> unsure if wget should do any filtering of filetypes.

I was more thinking of how to specify "boundary" for instance.  Expect
that the file is well formed doesn't seem nice to users.

>At most, we could prevent the file from being an executable
>binary. (ELF in Linux, Win32 EXE in Windows, etc.)



reply via email to

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