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

Andy Green andy at warmcat.com
Tue Oct 11 10:09:08 CEST 2016


On Tue, 2016-10-11 at 08:00 +0000, Joerg Pommnitz wrote:
> 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.

Have a look here:

https://github.com/warmcat/libwebsockets/blob/master/lib/libwebsockets.
h#L2483

-Andy

>  -- 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_stat
> > e=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
> > 
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> http://libwebsockets.org/mailman/listinfo/libwebsockets



More information about the Libwebsockets mailing list