summaryrefslogtreecommitdiff
path: root/examples/sample_push_event.sh
blob: 362d621323745d92e4adb026fb139056ef229fdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# Expects service to be listening on socket
# Expects to be run from project root
# Payload signed with 'mysecret'

curl --unix-socket /tmp/websocket-listener.sock http://localhost/ \
	-X POST \
	--data @./examples/sample_push_payload.json \
	-H 'X-Github-Event: push' \
	-H 'X-Hub-Signature-256: sha256=6803d2a3e495fc4bd286d428ea4b794476a1ff1b72bbea4dfafd2477d5d89188' \
	-H 'Content-Length: 7413' \
	-H 'Content-Type: application/json' \
	-v