Ok, so examining some network logs, the Host value should be "localhost:5232". No http prefix or anything, just "localhost:5232".

The values need to be strings, so set the depth to "1", not 1.

The Content-Length of "xxxx" is invalid. If you're going to send this header, it needs to be an integer. See: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

Modifying the headers as above, and omitting Content-Length caused this test to pass for me.