I'm using PHP to download a (big) file from a remote server and this download is triggered by clicking on a download button on a web page.
So when i click the download
button on the web page, then an Ajax
request (with angulars $http
) is made to a PHP function. That function triggers a download using cURL
.
In the mean time I'd like to make other requests to my PHP site with Ajax. But all other Ajax requests show the status Pending
as long as the download is in progress.
So basically the download is blocking every other request to PHP. Is there any way I can avoid this blockage?