HTTP Request unable to Download files / Downloaded files are corrupted

Using HTTP Request for Downloading PDF file from website

However downloaded files are corrupted . when checked on text editor the files show authentication failure

How to send Cookie in Header

Full URL: test.pdf
Upgrade-Insecure-Requests : 1
User-Agent : Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36
Accept : text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8
Accept-Encoding : gzip, deflate, br
Accept-Language : en-US,en;q=0.9
Cookie : _mkto_trk=id:979-MCL-531&token:_mch-xxx.com-1520849045509-16190; stc=“stc=true”; _ga=t1; _gid=GA1.2.1355260986.1520851668; userToken=“identity=id1&user=name1%xxx.com&token=CC%3A27%2F85d138e584c5710e816ec102050727806c7cb05d”; JSESSIONID=9103dcd0974b82af310f2ca605f88d6f; rememberid_trade=“dnr”; lsys=“trade”; sToken=5f5cdc5f90b8ea369bd2a29087804201; LCSRF_TOKEN=“null”; orgname=“xxxx”

ERROR
Reposnse

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, support@xxx.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.