Avatar
Please consider registering
Guest
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Register Lost password?
sp_Feed sp_TopicIcon
Sibell Recorder GetSnapshot
sp_NewTopic Add Topic
Avatar
Jose Malave
Boca Raton, Florida
Admin
Forum Posts: 813
Member Since:
January 3, 2014
sp_UserOfflineSmall Offline
1
February 15, 2017 - 5:15 pm
sp_Permalink sp_Print sp_EditHistory sp_QuotePost
sp_ReportPost

To get a snapshot you have to do a POST or a GET command to the device. like so

I have done a stike to remove the link feature on browsers. Breaking this down is the ip of the device,port is the http port and [/channelid] is the channel number. So if you want a snapshot from a recorder channel 3 then input the numerical 3. For a camera snapshot default to 1. 

Doing a POST request. 

HTTP Code

POST /GetSnapshot HTTP/1.1
Host: 192.168.1.201
Authorization: Basic YWRtaW46MTIzNDU2
Cache-Control: no-cache
Postman-Token: a5cb034f-5135-b757-6236-6adf083b2171
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

PHP Code

$request->setUrl('http://192.168.1.201/GetSnapshot');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders(array(
'postman-token' => '8bce154d-59b3-51b1-1663-8bc46a0c28af',
'cache-control' => 'no-cache',
'authorization' => 'Basic YWRtaW46MTIzNDU2'
));

try {
$response = $request->send();

echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}

Curl code

curl -X POST -H "Authorization: Basic YWRtaW46MTIzNDU2" -H "Cache-Control: no-cache" -H "Postman-Token: 192ba6d1-b50e-9908-66d3-d2d41aa2d01a" "http://192.168.1.201/GetSnapshot"

 

For a GET Request do 

 

HTTP Code

GET /GetSnapshot HTTP/1.1
Host: 192.168.1.201
Authorization: Basic YWRtaW46MTIzNDU2
Cache-Control: no-cache
Postman-Token: 5f78cb4b-1618-1432-412b-41f28be49ffd

 

PHP Code

$request->setUrl('http://192.168.1.201/GetSnapshot');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders(array(
'postman-token' => 'ddce98d0-6915-9e11-fbf4-f093215e4cc3',
'cache-control' => 'no-cache',
'authorization' => 'Basic YWRtaW46MTIzNDU2'
));

try {
$response = $request->send();

echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}

Curl Code

curl -X GET -H "Authorization: Basic YWRtaW46MTIzNDU2" -H "Cache-Control: no-cache" -H "Postman-Token: 6674fa87-2aec-7c93-4dd4-a54caca7e02b" "http://192.168.1.201/GetSnapshot"

 

For these, there is an auth which is basic. You can use a basic generator to add the proper string. Here we are using the default admin/123456 to authenticate ourselves when requesting for the snapshot.  

 Jose Malave - IT Director| Toll Free: 866-573-8878 | E-mail: support@securitycameraking.com

Calculate your Hard Disk Drive HereCalculate your Lens Here |  Calculate your Voltage Drop Here

       Video Vault (All Videos)         |  Security Camera Videos |     Smartphone Access Videos  

                    Check out the new Tech! HD-CVI       More.... 

Forum Timezone: America/New_York
Most Users Ever Online: 233
Currently Online:
Guest(s) 7
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Techpro Security: 404
shockwave199: 179
tubac: 167
Jer7of9: 154
Gilberto: 150
MrDeepFreeze: 136
Night Hawk: 100
Mark: 85
West Coast Jones: 66
ShawnInFL: 64
Newest Members:
wjclause@gmail.com
sergiojr1
KurtBenkert
jimnf69
MUDASSAR SARDAR
jessicadd2
Robertgrive
nq16
bensc3
leannadp16
Forum Stats:
Groups: 5
Forums: 28
Topics: 1476
Posts: 5965

 

Member Stats:
Guest Posters: 135
Members: 22524
Moderators: 7
Admins: 5
Administrators: Damon Delcoro, Brad Besner, Jose Malave, Damon Delcoro, Tony Petruzzi
Moderators: Zeke Richey, Eric Wilson, Yarden Pinhasi, Joe Shopsin, jwilhelmi, Jorge Nava, Tyler Rittel