How to send Arduino Yún Post Request to localhost?
There needs to be an empty line between HTTP headers and data.

You need to end the Content-Length header line with

client.println(data.length());


so that the client.println(); inserts an empty line.