[Libwebsockets] lws_hdr_copy (wsi, buf, sizeof (buf), WSI_TOKEN_HTTP_URI_ARGS) eats ampersands

Joerg Pommnitz pommnitz at yahoo.com
Mon Oct 10 11:18:35 CEST 2016


Hello all,
the query part from the following HTTP Request (directly from wireshark)

131    16.898853    127.0.0.1    127.0.0.1    HTTP    1106    POST /index.html?r_picked_menu=SYSTEM_CONF&r_CLevel1=product_conf&r_state=change_values HTTP/1.1  (application/octet-stream)

becomes 
uri-args="r_picked_menu=SYSTEM_CONFr_CLevel1=product_confr_state=change_values"

when I try to retrieve it with 
lws_hdr_copy (wsi, buf, sizeof (buf), WSI_TOKEN_HTTP_URI_ARGS)

If this is intended, how do I retrieve the unmangled query?


-- Regards
  Joerg



More information about the Libwebsockets mailing list