Software Archive
Read-only legacy content
17061 Discussions

Intel DeviceSpy escapes "&" characters in the controlURL when sending HTTP POST

wlupton
Beginner
395 Views
I am using Device Spy Version 1.3.1768.24086 and have noted the following behavior.

The controlURLs in my DDDs include query strings, so the "&" characters are encoded as & in the DDD.

For example, controlURL "/path?a=b&c=d" will be encoded in the XML as "/path?a=b&c=d".

When Device Spy uses this controlURL for an HTTP POST, it should retain the literal "&" but it does not; instead it quotes it as %26.

In the example above, the URL will be received as "/path?a=b%26c=d", so the HTTP server will not correctly parse the query string.

Note that it would be incorrect for the HTTP server to un-escape the query string before parsing it, because the query components might validly contain escaped special characters.

Any comments? Thanks,

William Lupton

0 Kudos
0 Replies
Reply