[Libwebsockets] methods other than GET

John Beuving johnbeuving at gmail.com
Mon Apr 8 15:06:11 CEST 2013

We have an older protocol which uses a HTTP PUT method to send XML messages to a device.
This device is now also being used more often in networks which are behind an internet proxy or mobile units.
To allow long term communication we allow the device to upgrade the protocol to use websockets and
use port 80.
We want to be backward compatible and support the old protocol and the newer websockets based protocol.

On Apr 8, 2013, at 3:02 PM, Andy Green (林安廸) wrote:

> On 08/04/13 20:53, the mail apparently from John Beuving included:
>> Hi,
>> I would like to extend the framework of libwebsockets to allow POST and PUT HTTP methods.
>> How can this be done ? Do I have to alter the lextable in parser.c ?
>> What is good practice to use websockets in combination with PUT methods.
> AFAIK it's not normal to do so... there are no examples of it to base "good practice" on AFAIK... I'm not sure it's actively evil either but what's the thought process that led you to arrive at the idea?
> -Andy

More information about the Libwebsockets mailing list