Set the header fields before getOutputStream