Hey there,

I just tried running a service and accessing it via a cURL-generated POST request with 2 parameters. Unfortunately, what I ended up having was a correct first value, but a missing second value because parseURLEncoded was thinking that the second parameter's name was amp;myname instead of myname. Replacing

parse_str(self::contentFromStream($handle), $data);

with

parse_str(html_entity_decode(self::contentFromStream($handle)), $data);

in line 452 of RESTServer.inc seems to fix the issue (though I don't know if there are situations where doing so would result in wrong data or smthn).

Thanks for looking into this.