Open hongweishang opened 5 years ago
live@ubuntu:/usr/local/nginx$ curl -v -X POST -d "app=live&name=ccc&rec=rec1" "http://localhost/rtmp-control/record/start" Note: Unnecessary use of -X or --request, POST is already inferred.
POST /rtmp-control/record/start HTTP/1.1 Host: localhost User-Agent: curl/7.47.0 Accept: / Content-Length: 26 Content-Type: application/x-www-form-urlencoded
conf below:
worker_processes 1; rtmp { server { listen 1956; chunk_size 4000; application live { live on;
hls on;
}
1 curl GET: live@ubuntu:/usr/local/nginx$ curl -v "http://localhost/rtmp-control/record/start?app=live&name=ccc&rec=rec1"
2 curl POST live@ubuntu:/usr/local/nginx$ curl -v POST -d "{'app':'live', 'name':'ccc','rec':'rec1'" "http://localhost/rtmp-control/record/start"
both get and post , not work