POST/osc/commands/executeHTTP/1.1Host:[camera ip address]:[httpPort]Content-Type:application/json;charset=utf-8Accept:application/jsonContent-Length:{CONTENT_LENGTH}X-XSRF-Protected:1{"name":"camera.setOptions","parameters":{"sessionId":"12ABC3","options":{"iso":200,"exposureCompensation":-2}}}
请求 (API 2)
POST/osc/commands/executeHTTP/1.1Host:[camera ip address]:[httpPort]Content-Type:application/json;charset=utf-8Accept:application/jsonContent-Length:{CONTENT_LENGTH}X-XSRF-Protected:1{"name":"camera.setOptions","parameters":{"options":{"iso":200,"exposureCompensation":-2}}}
POST/osc/commands/executeHTTP/1.1Host:[camera ip address]:[httpPort]Content-Type:application/json;charset=utf-8Accept:application/jsonContent-Length:{CONTENT_LENGTH}X-XSRF-Protected:1{"name":"camera.takePicture","parameters":{"sessionId":"12ABC3"}}
请求 (API 2)
POST/osc/commands/executeHTTP/1.1Host:[camera ip address]:[httpPort]Content-Type:application/json;charset=utf-8Accept:application/jsonContent-Length:{CONTENT_LENGTH}X-XSRF-Protected:1{"name":"camera.takePicture"}