Taking this forward. I figured it would be best to merge --post-data and --post-file commands into --method=HTTPMethod
I intend to use the following logic in merging them: wget --method=POST [data/file] URL The text immediately following --method=POST is first assumed to be data. If however it does not exist in the key:value format, assume that to be a file path and try to read that file. If the file does not exist, return an error. The old --post-data and --post-file commands will be kept for backward compatibility but marked deprecated. Please let me know if anyone has any sort of objection to this. On Wed, Mar 6, 2013 at 2:42 AM, Giuseppe Scrivano <gscriv...@gnu.org> wrote: > Daniel Stenberg <dan...@haxx.se> writes: > > > On Tue, 5 Mar 2013, Ángel González wrote: > > > >>> wget --delete <URL pointing to resource that must be deleted> > > > >> I would prefer something like --method=delete, which would also > >> allow other methods (eg. OPTIONS, TRACE, PROPFIND...) > > > > Which incidentally is how curl does it (just with a differently named > option): > > > > $ curl --request DELETE http://example.com/ > > I agree here, it seems like the way to go. > > -- > Giuseppe > > -- Thanking You, Darshit Shah Research Lead, Code Innovation Kill Code Phobia. B.E.(Hons.) Mechanical Engineering, '14. BITS-Pilani