There we go. Attaching the next iteration of the patch to add more REStful scripting options.
Changes included are: * Accept an option during invocation, called --method=MethodString. The MethodString will be converted to Uppercase and sent as the Method. * The old --post-data and --post-file commands have been turned into aliases. Internally they set --method=POST and --body-data or --body-file as applicable. * Added sanity checks to ensure that wget is not invoked with both, --body-data and -body-file or that it is not invoked with either of them but without a --method. * Added sanity check to ensure that wget is not invoked with method and --post-file or --post-data * Added missing sanity check to ensure that wget is not invoked with both --post-file and --post-data * Documentation for new commands. The major difference between this and the last submission is the removal of redundant code between body-data and post-data. -- Thanking You, Darshit Shah Research Lead, Code Innovation Kill Code Phobia. B.E.(Hons.) Mechanical Engineering, '14. BITS-Pilani
0001-Add-a-generic-method-command-to-set-a-method-in-HTTP.patch
Description: Binary data