libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] Weird URL parsing behaviour


From: David J Myers
Subject: [libmicrohttpd] Weird URL parsing behaviour
Date: Thu, 28 Feb 2013 15:24:54 -0000

Hi there,

When I send the following URL into my libmicrohttpd based embedded web-server, I don’t receive the url correctly inside my http_access_callback.

http://10.26.7.81/events/CreateAlarmEvent.cgi?id=1&trigger=1&SetOutput=0&OutputActiveHigh=0&duration=1&SendFrame=0&SendTCPMessage=1&TCPMessageString=Zone1%A0triggered&StreamIndex=0&maxfps=1

The TCPMessageString parameter contains two non-breaking-space characters (&NBSP = 0xA0) and the effect of this is that I get an extra parameter in the callback url which is the last 3 characters of this parameter, ie the string “red”.

I assumed that &NBSP characters are normal in URLs, so I don’t understand what is happening here.

Best regards, David


reply via email to

[Prev in Thread] Current Thread [Next in Thread]