0

I am currently using a bat file to download a JSON page

But I get an error because I need to add headers:

{"errorcode":"9999"}

I should mainly add only a cookie for the request

How can i add the cookie header?

lily
  • 1
  • 6
  • Possible duplicate of [Custom header with MSXML2.ServerXMLHTTP](https://stackoverflow.com/questions/37028710/custom-header-with-msxml2-serverxmlhttp) – Marged Dec 10 '17 at 16:06
  • check this - https://stackoverflow.com/questions/47316209/download-files-via-batch-with-custom-header/47316807#47316807 – npocmaka Dec 10 '17 at 16:06

1 Answers1

1

You can use curl. See this question.

eMMe
  • 569
  • 5
  • 16
  • But I do not know how to integrate this into the code: curl -c /path/to/cookiefile http://yourhost/ – lily Dec 10 '17 at 16:03