curl-users
Re: A small nudge to fix a frequent -X misuse?
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 11 Sep 2015 14:58:19 +0200 (CEST)
Date: Fri, 11 Sep 2015 14:58:19 +0200 (CEST)
On Sun, 30 Aug 2015, Daniel Stenberg wrote:
> I wanted to see if anyone has opinions about a patch similar to the attached
> one. It will cause a warning get output if a pointless -X is used, to help
> the user figure this out. I also took the change to warn for -XHEAD as that
> will most likely cause a hanging connection in most cases.
Hi all,
I've now merged a modified version of this. I appreciated the feedback I got
on this so the differences from what I initially suggested are:
1 - the message is only shown in verbose mode
2 - the message is now called 'note:' and not a warning to make it less scary
I blogged about it too:
http://daniel.haxx.se/blog/2015/09/11/unnecessary-use-of-curl-x/
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2015-09-11