This commit is contained in:
2025-07-29 00:27:48 +00:00
parent 86cc1a138b
commit dc3288cc51
4 changed files with 7700 additions and 4421 deletions
+8 -4
View File
@@ -65,14 +65,18 @@ export class SmartWhois {
}
// lets test http response
const httpResult = await plugins.smartrequest.safeGet(`http://${domainArg}/`);
const httpResult = await plugins.smartrequest.SmartRequest.create()
.url(`http://${domainArg}/`)
.get();
// lets test https response
const httpsResult = await plugins.smartrequest.safeGet(`https://${domainArg}/`);
const httpsResult = await plugins.smartrequest.SmartRequest.create()
.url(`https://${domainArg}/`)
.get();
return {
httpStatus: httpResult.statusCode,
httpsStatus: httpsResult.statusCode,
httpStatus: httpResult.status,
httpsStatus: httpsResult.status,
httpHeaders: httpResult.headers,
httpsHeaders: httpsResult.headers,
}