Added xml mime. Improved http post support.