Darshit Shah <[email protected]> writes:

> Okay, I just checked. The man page clearly states:
>
>> In particular, they *both *expect content of the form
>> "key1=value1&key2=value2"

Good point.  The man page should be changed make it clear that it's the
*server* that expects such post data when processing HTML forms, but
that they are in no way inherent to HTTP or to Wget (except for the
default Content-Type, which can be overridden).

> So then how to unify --post-data and --post-file into one option?

Why would it need to be one option when they do different things?
Perhaps I'm missing something, but --method=POST --post-data=foo (or
--post-file=bar) seems fine to me.  If you want to be able send
arbitrary contents with requests, those can be renamed to
`--request-data' and `--request-file', keeping the old options for
compatibility.

Reply via email to