Added extra things to handle content type

I ran into some use cases where our rest services are relatively picky about content type, so I added the Accept header and content type/length to the response.