0

I have a request to create data that has a lot of images, so I want to make one more request to download those images without having to wait for the request to finish. I have learned about fsockopen but it doesn't support https request. Hope you will help me, thanks so much.

Luân Tào
  • 11
  • 3
  • 1
    Use ajax for async request – vivek modi Sep 29 '21 at 04:36
  • I'm working on the server side. – Luân Tào Sep 29 '21 at 04:46
  • I have an api to process db crud and in this api i want to call another api to download image but i don't want to wait for this api to finish because it takes a long time – Luân Tào Sep 29 '21 at 04:50
  • Seems answered before, please see whether it helps: [Async_Curl](https://stackoverflow.com/questions/36171222/async-curl-request-in-php) – Ken Lee Sep 29 '21 at 04:51
  • Does this answer your question? [How to make asynchronous HTTP requests in PHP](https://stackoverflow.com/questions/124462/how-to-make-asynchronous-http-requests-in-php) – Boken Sep 29 '21 at 10:42