Add XML Support

/to @ritch
Why is it necessary to send an explicit `Content-Length header`?