[Libwebsockets] client / method=HEAD

Andy Green andy at warmcat.com
Sun Mar 12 19:05:43 CET 2017

On March 12, 2017 10:27:33 PM GMT+08:00, Joel Winarske <joel.winarske at gmail.com> wrote:
>Just for http client.  I see it for being used as a technique to test
>internet connection.

I haven't tried it, but it should generally work.  It doesn't understand itself atm that with HEAD, the content-length it was told is never going to be fulfilled.  So you may have to hang up on it after you got the headers.


>On Sat, Mar 11, 2017 at 1:30 PM Andy Green <andy at warmcat.com> wrote:
>> On March 12, 2017 2:14:46 AM GMT+08:00, Joel Winarske <
>> joel.winarske at gmail.com> wrote:
>> >Hi Andy,
>> >
>> >Is method HEAD expected to work with client?
>> It looks like it should issue what it would for GET with HEAD, if you
>> the client connect info .method to "HEAD".  That's what HEAD is
>supposed to
>> do on client.
>> Are you really asking does lws server part understand HEAD?  It knows
>> is a valid method and can parse it, but it doesn't respond to it
>using HEAD
>> semantics in the fileserving part, since nobody has asked for it.
>> -Andy
>> >
>> >Joel

More information about the Libwebsockets mailing list