curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl bug -ID - doubles output

From: Ray Satiro via curl-users <curl-users_at_cool.haxx.se>
Date: Tue, 15 Nov 2016 23:47:38 -0500

On 11/13/2016 5:13 PM, David Niklas wrote:
> (Subject is complete bug description.)
> I looked at the code and hope to tackle this one myself, but I'm not
> certain how you'd like curl to behave in this circumstance.
> 1. Keep current (seems stupid).
> 2. Place error message and exit when both are passed to curl (or -D ==
> stdout) (theoretically could break a program.)
> 3. Place warning message when both are passed to curl (or -D == stdout).
> 4. Just have curl ignore the -D when it is set to stdout and -I is passed.
> 5. Require -D when using -I (Bad idea, but included for completeness).

Why is it stupid? It's doing what you asked it to. My vote is for #1.

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-users
FAQ: https://curl.haxx.se/docs/faq.html
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-11-16