curl-users
Re: A small nudge to fix a frequent -X misuse?
Date: Sat, 21 Nov 2015 19:02:28 +0100
Hello Daniel,
I just stumbled on this message for the first time as I upgraded my curl.
"/Warning: Setting custom HTTP method to HEAD may not work the way you
want. "
/
Users who see this don't understand what is meant by this. I also don't
know what to do now. I tried using "-is" but this does a GET request again.
The message should suggest how to make a HEAD request correctly.
(And please tell me how to, too, as it seems that I always did it wrong).
Best regards
spaceone
Am 11.09.2015 um 16:57 schrieb Alex Bligh:
> Daniel,
>
> On 11 Sep 2015, at 13:58, Daniel Stenberg <daniel_at_haxx.se> wrote:
>
>> 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
> Much prefer this.
>
>
-------------------------------------------------------------------
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.html
Received on 2015-11-21