Multiple https requests .. how?

I have an https API URL that I need to run several times, and check the status of the domain as quickly as possible.

How can I run the same URL several times at the same time, getting a response in the output and closing the finished connection, while keeping the resource memory as low as possible?

I was told to use streams in another language (not PHP)?

Any examples or a hand of credit are welcome! Thanks

0
source share
2 answers

Just made a quick google and came up with this one , I believe that this will solve your problem - this quote sums it up:

curl_multi * cURL . , , , .

+2

m.edmondson : D

, : , , , , DNS- .

php cli script, , , bash lynx ( linux).

+1

Source: https://habr.com/ru/post/1782861/


All Articles