On Fri, 20 Dec 2013 20:09:04 +0100, Sönke Ludwig wrote:

Which string exactly did you send? For "some string" I get a single
field ["some string": ""].

Sorry for the late reply (holidays, etc...). I think what happened was the following. I was expecting the content of a curl request of the form `post(url, "somestring");' to be received through the req.bodyReader. When that didn't work, I tried all of the other places where the content could be coming from. I printed all of the input fields of the request object, including something like:

foreach(f; req.form)
    writeln(f);

I guess that implicit in this was that I was expecting the content to be in the form ["" : "somestring"]. That is, since I didn't specify any "field name" in the curl request I didn't expect the content to be the key -- I expected it to be the value! (or perhaps I didn't even realize it was an associative array. at the time). When I didn't see any output in all of my writeln's I wrongly concluded that the request did not at all include the content. :-)