Thursday, March 16, 2017

Download file using jquery

Unfortunately it is not easy or straightforward to download a file using jquery. Either window.open or a hidden IFrame control has to be used to make this possible. And things get worse when we want to use POST instead of GET method in the request.

This jquery extension makes it very convenient to download files in such cases:

https://jqueryfiledownload.apphb.com/

No comments:

c# httpclient The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch

 If we get this error while trying to get http reponse using HttpClient object, it could mean that certificate validation fails for the remo...