samedi 9 mai 2015

How to open a file from WebAPI where in server accepts specific Header

I am trying to download a document from a webAPI. The URL I am trying to bind to a link, but url also takes Accept header.

How to pass in the Accept header along with the request?

I have seen this link but am not able to figure out how to set Header when binding webAPI URL to a link in html. (I would prefer not to use File downloader for now).

Aucun commentaire:

Enregistrer un commentaire