[Libwebsockets] [libwebsockets] #67: XMLHttpRequest GET request cannot set Uri-Args on same route

Trac trac at libwebsockets.org
Sun Apr 20 14:16:52 CEST 2014


#67: XMLHttpRequest GET request cannot set Uri-Args on same route
------------------------------------+-----------------
 Reporter:  ogtifs                  |      Owner:
     Type:  defect                  |     Status:  new
 Priority:  major                   |  Milestone:
Component:  libwebsocket test apps  |    Version:
 Keywords:                          |
------------------------------------+-----------------
 If I serve a page from the url "localhost:7681/?test=asdf" which contains
 an XMLHttpRequest to "?anything=else", in the corresponding connection
 handler libwebsockets will report the Uri-Args header as "test=asdf"
 instead of "anything=else".

 I confirmed the correct "/?anything=else" HTTP header is arriving in
 libwebsockets by dumping the buffer at server.c:180 (today's git pull)

 Note that if the first URL had no GET params (i.e. "localhost:7681/") then
 the XMLHttpRequest with "?anything=else" from that page correctly sets
 Uri-Args to "anything=else"

--
Ticket URL: <http://libwebsockets.org/trac/libwebsockets/ticket/67>
libwebsockets <http://libwebsockets.org>
libwebsockets C library



More information about the Libwebsockets mailing list