admc/wd — pull request #49 by btipling (2012-10-03 00:44:37+00:00)
Title: Set Content-Length header on requests

Hi,

I am trying to use wd.js with GhostDriver and phantom.js[2] and it wasn't working. The mongoose webserver phantom.js ships with wont read post data unless it also sends a Content-Length header. If you read the HTTP RFC, you should always send a Content-Length header[3]

[1] https://github.com/detro/ghostdriver/
[2] https://github.com/detro/phantomjs/tree/ghostdriver-dev
[3] http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

Spent all day trying to figure out why it wasn't working for me. :fish:

![Exhausted](http://i.imgur.com/q7Dyb.gif)