Dear all:
I am a starter user of RCM2200. I need to ask a IP camera (server) for a snapshot.
I was able to do that on VB6:
Inet1.Execute “192.168.1.104/cgi-bin/video_snapshot.cgi?user=admin&pwd=admin”, “GET”
using Inet control and retreiving data with StateChanged event, and saving the data as .jpg file.
What is the similar procedures in Dynamic C for RCM2200?
Thank you MargaretK! I was able to do the job. Now I am at home, and with no copy of the file, but it worked very well. Now, I should implement error traps and all that thing.
Daniel
I use
err=httpc_get(&hsock,“192.168.1.14”,80,
“/cgi-bin/video_snapshot.cgi?user=admin&pwd=admin”,NULL);
for initiate the cgi script in a specific ip camera. Then, I use
num_bytes=httpc_read_body(&hsock,buffer,128);
while (hsock.state==HTTPC_STATE_BODY)
to get the picture.