Including headers in the downloaded file according to the attributes