#!/usr/bin/env php
<?php
/**

title=check remote interface response
cid=1

1. Send a request to interface http://xxx
2. Retrieve sessionID field from response json
- 3. Check its format @ `^[a-z0-9]{26}`

*/

$resp = file_get_contents('http://zentaopms.ngtesting.com//?mode=getconfig');
$json = json_decode($resp);
echo $json->sessionID . "\n";
