Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
如果您只需要简单的功能来验证该网站是否对某些服务可见(例如 http://downforeveryoneorjustme.com),我认为 API 不是必需的,您可以简单地获取:
并检查响应中是否可以找到:
或:
例如在类 UNIX 环境中,您可以执行如下操作:
并检查退出代码。也许你应该在你的代码中做类似的事情?
If you only need simple functionality to verify whether the site is visible to the some service (ex. http://downforeveryoneorjustme.com), I think the API is not necessary, you can simply get:
And check if in response you can find:
or:
For example in unix-like environments you can do something like this:
And check exit code. Maybe you should do something similar in your code?