Skip to content
Advertisement

Check proxy before cURL

I need to check whether the selected $proxy is active or not and do a loop until a working one in proxy.txt is found before using it in a cURL. How could I do that? Below is a given proxy function.

JavaScript

Thank you.

Advertisement

Answer

maybe you can ping, something like this

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement