-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·17 lines (12 loc) · 1.02 KB
/
test.sh
File metadata and controls
executable file
·17 lines (12 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# reg="http://fa3b8a8136cd.ngrok.io/reg"
# is="http://fa3b8a8136cd.ngrok.io/isstarted"
reg="http://0.0.0.0:5000/reg"
is="http://0.0.0.0:5000/isstarted"
# curl --header 'Content-Type: application/json' --request POST --data '{"name":"dddd"}' http://0.0.0.0:5000/reg
curl --header 'Content-Type: application/json' --request POST --data '{"name":"omar"}' $reg
curl --header 'Content-Type: application/json' --request POST --data '{"name":"mhmd"}' $reg
curl --header 'Content-Type: application/json' --request POST --data '{"name":"abd"}' $reg
# curl --header "Content-Type: application/json" --request POST --data '{"index":"0"}' http://0.0.0.0:5000/isstarted&
curl --header "Content-Type: application/json" --request POST --data '{"index":"1","howmplayerstarted":"0"}' $is &
curl --header "Content-Type: application/json" --request POST --data '{"index":"2","howmplayerstarted":"0"}' $is &
curl --header "Content-Type: application/json" --request POST --data '{"index":"3","howmplayerstarted":"0"}' $is &