Skip to content

Instantly share code, notes, and snippets.

@Zemke
Created June 3, 2023 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zemke/ed008d6034eda3e96908c20dd268959d to your computer and use it in GitHub Desktop.
Save Zemke/ed008d6034eda3e96908c20dd268959d to your computer and use it in GitHub Desktop.
cURLing WAaaS getvideo endpoint
boggy@waaas curl -X POST 'http://localhost:8080/getvideo' -F 'replay=@game.WAgame' -F 'x=1920' -F 'y=1080' -F 'fps=1' -F 'start=100' -F 'end=105'
9asfpl8d
boggy@waaas curl -X GET 'http://localhost:8080/getvideo/9asfpl8d/status'
{"done": false, "ready": 6, "expected": 5, "progress": 1.2, "remaining": 0, "estimate_s": 0, "zero_indexed": true}
boggy@waaas curl -X GET 'http://localhost:8080/getvideo/9asfpl8d/status'
{"done": false, "ready": 6, "expected": 5, "progress": 1.2, "remaining": 0, "estimate_s": 0, "zero_indexed": true}
boggy@waaas curl -X GET 'http://localhost:8080/getvideo/9asfpl8d/status'
{"done": true, "ready": 6, "expected": 5, "progress": 1.0, "remaining": 0, "estimate_s": 0, "zero_indexed": true}
boggy@waaas curl -X GET 'http://localhost:8080/getvideo/9asfpl8d/status'
{"done": true, "ready": 6, "expected": 5, "progress": 1.0, "remaining": 0, "estimate_s": 0, "zero_indexed": true}
boggy@waaas curl -X GET 'http://localhost:8080/getvideo/9asfpl8d/status'
{"done": true, "ready": 6, "expected": 5, "progress": 1.0, "remaining": 0, "estimate_s": 0, "zero_indexed": true}
boggy@waaas curl -X GET 'http://localhost:8080/getvideo/9asfpl8d/status'
{"done": true, "ready": 6, "expected": 5, "progress": 1.0, "remaining": 0, "estimate_s": 0, "zero_indexed": true}
boggy@waaas curl -X GET 'http://localhost:8080/getvideo/9asfpl8d/status'
{"done": true, "ready": 6, "expected": 5, "progress": 1.0, "remaining": 0, "estimate_s": 0, "zero_indexed": true}
boggy@waaas curl -X GET 'http://localhost:8080/getvideo/9asfpl8d/status'
{"done": true, "ready": 6, "expected": 5, "progress": 1.0, "remaining": 0, "estimate_s": 0, "zero_indexed": true}
boggy@waaas mkdir out
boggy@waaas curl -X GET 'http://localhost:8080/getvideo/9asfpl8d/0' --output out/0.png
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 196k 0 196k 0 0 47.8M 0 --:--:-- --:--:-- --:--:-- 47.8M
boggy@waaas curl -X GET 'http://localhost:8080/getvideo/9asfpl8d/1' --output out/1.png
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 195k 0 195k 0 0 63.7M 0 --:--:-- --:--:-- --:--:-- 63.7M
boggy@waaas curl -X GET 'http://localhost:8080/getvideo/9asfpl8d/2' --output out/2.png
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 195k 0 195k 0 0 63.7M 0 --:--:-- --:--:-- --:--:-- 63.7M
boggy@waaas curl -X GET 'http://localhost:8080/getvideo/9asfpl8d/3' --output out/3.png
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 195k 0 195k 0 0 63.6M 0 --:--:-- --:--:-- --:--:-- 63.6M
boggy@waaas curl -X GET 'http://localhost:8080/getvideo/9asfpl8d/4' --output out/4.png
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 196k 0 196k 0 0 64.0M 0 --:--:-- --:--:-- --:--:-- 64.0M
boggy@waaas curl -X GET 'http://localhost:8080/getvideo/9asfpl8d/5' --output out/5.png
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 196k 0 196k 0 0 64.0M 0 --:--:-- --:--:-- --:--:-- 64.0M
boggy@waaas curl -X GET 'http://localhost:8080/getvideo/9asfpl8d/7'
file at position 7 does not exist
boggy@waaas curl -X GET 'http://localhost:8080/getvideo/9asfpl8d/ack'
{"killed": false}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment