ping url 以使服务器具有最小负载的最佳方法是什么


What is the best way to ping the url so that the server have the minimum possible load

我希望在不关心输出的情况下ping很多URL,我关心的是性能,我想知道这样做的最佳方法

HTTP HEAD请求可能是您要查找的。它将返回有关特定URL的完整信息(状态代码,大小等),但不传输其内容。这个请求可以使用任何"低级"TCP函数,如PHP的fsockopen和CURL扩展,shell的telnet等。