Send Content length header

I ran into an issue (I think nginx related) that basically required sending content-length headers with the requests. 

The first commit adds a symfony/yaml dependency that was required for me to make the tests pass on master. 

Unfortunately, it seems that unlike the definition of the interface, the passed in content is not always a string, which is why I have to check for array as well.