Setting Content-Length and Content-Size attribute