Shortest code to post a string to WebServer In bash, this code posts String to post to http://www.example.com/target:

curl -d "String to post" "http://www.example.com/target"


NOTE: You should use http://www.example.com/target as the URL to POST to, without any change.

I think all other languages that I have knowledge in need a lot more code than this. I'm not blaming other languages. Let's see the interesting answers that reduce the effort.

Your task is to write the shortest code possible to send a POST request to a sample server, http://www.example.com/target, and the request data should be the string String to post.
Bash: 90 characters

No external tools, just pure bash.

echo 'POST /target HTTP/1.0
Content-length:14

String to post'&gt;/dev/tcp/www.example.com/80