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

Joerg Pommnitz pommnitz at yahoo.com
Tue Oct 11 10:00:26 CEST 2016


Andy,
any idea about this problem? 
I worked around the issue by putting the parameters into hidden form fields, 
but this might not always be an option.
 -- Regards       Joerg



> Joerg Pommnitz <pommnitz at yahoo.com> schrieb am 11:18 Montag, 10.Oktober 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