Darshit Shah <[email protected]> writes:

> Okay gathering inputs from all the replies above., I think the best way to
> move forward would be to implement a --method=<GET|POST|PUT|DELETE>
> followed by --post-data or --post-file in case of POST and --put-data
> --put-file in case of the PUT option.

Since the proposed options influence the sending of request body, how
about: --request-body=... and --request-body-file=...?  This also
removes the need to have two pairs of identical options only because the
method is mentioned in the name of the option.

Another possibility would be to add some more syntax to --method so as
to allow --method=POST:file=foo, and also --method=PUT:data=abc....
That way both --post-data and --post-file would become deprecated and no
new options would be needed.

Reply via email to