ciao a tutti, sto facendo un programma c/c++ sotto linux-embedded per comandare una camera ip. La camera ip è una sony e accetta comandi cgi.
Io ho creato una socket che si connette all'indirizzo ip della camera ma nn so come inviare i comandi get e post, qualcuno sa dirmi come fare?
il protocollo della camera è di questo tipo:
<Method>
GET/POST
<syntax>
http://ip_adr/command/visca-inquiry.cgi?visca=<InquiryCommand>
<example>
The following example shows the inquiry of the current D-Zoom mode.
POST /command/visca-inquiry.cgi HTTP/1.1\r\n
Host: 192.168.1.1\r\n
Connection: Keep-Alive\r\n
Cache-Control: no-cache\r\n
Content-Length: 16\r\n
\r\n
VISCA=81090406FF
response data (D-Zoom On)
HTTP/1.1 200 OK\r\n
Content-Type: text/plain\r\n
Content-Length: 8\r\n
Server: NetEVI/X.XX
\r\n
905002FF