[Libwebsockets] How to get query parameters using the GET method?

Roger Schreiter roger at planinternet.de
Fri May 20 15:13:10 CEST 2016


Am 20.05.2016 15:09, schrieb Andy Green:
> ...
> /* dump the individual URI Arg parameters */
> 			n = 0;
> 			while (lws_hdr_copy_fragment(wsi, buf, sizeof(buf),
> 						     WSI_TOKEN_HTTP_URI_ARGS, n) > 0) {
> 				lwsl_notice("URI Arg %d: %s\n", ++n, buf);


Great!

Regards,
Roger.



More information about the Libwebsockets mailing list