curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: support for --post-data argument

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 25 Sep 2017 22:50:33 +0200

On Mon, Sep 25, 2017 at 04:10:07PM -0400, Daniel Kahn Gillmor wrote:
> hey Curl folks--
>
> wget and uclient-fetch both support the argument --post-data, which i
> think is equivalent to curl's --data-raw.
>
> LEDE/OpenWRT apparently both make use of one of these three tools (wget,
> curl, uclient-fetch) interchangably). It'd be easier for those tools
> that depend on one of the three if they could rely on all of them
> supporting the same interface. would curl consider adding --post-data
> as an alias to --data-raw?

IMHO, there are just too many options and too many differences between these
programs that it's pointless to try to converge them. This particular
application needs --post-data, but others use other options and there's nothing
stopping everyone else from asking for the options they need to be added as
aliases, too.

What might be interesting is a shell script, called, for example wget-curl,
that just converts (a subset of) wget options into their curl equivalents then
calls curl. Such a script would be small enough to ship with curl itself and
might be enough, if renamed to "wget", to fool a lot of programs into thinking
it's the real wget. It works for Busybox, and curl would be able to emulate a
lot more options than Busybox supports.

>>> Dan
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-09-25