Network: December 2014 Archives

StatusCake PingURL

user-pic
Vote 0 Votes

StatusCake 是個線上網頁監控服務, 在世界有多個監控點,
免費的方案最短監控頻率是五分鐘, 可透過 Email、SMS(需付費)、PingURL、Pushover App 來進行告警通知
其中 PingURL 官方文件是寫 POST,
但實際上抓封包來看, 其實是 GET, 但是又不是帶參數那種, 所以在 PHP 用 $_POST 或 $_GET 都抓不到資料,
需要寫成這樣才可以抓到資料
$input=file_get_contents("php://input");
parse_str($input, $arr);

$arr['Token'] = A hash of your username & API key, use this to verify.
$arr['Status'] = Can either be UP or DOWN
$arr['StatusCode'] = Will be the error status code; or 0 if timeout
$arr['URL'] = The URL that can not be connected to
$arr['IP'] = The IP which can not be connected to
$arr['Name'] = Test Name

Recent Entries

About this Archive

This page is an archive of entries in the Network category from December 2014.

Network: October 2014 is the previous archive.

Network: April 2015 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives