Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curl wasn't working for me #19

Open
yanniboi opened this issue Sep 24, 2015 · 2 comments
Open

Curl wasn't working for me #19

yanniboi opened this issue Sep 24, 2015 · 2 comments

Comments

@yanniboi
Copy link

I cloned your script (excellent script by the way... super helpful!) but it didnt work for me out of the box.

My bash scripting isnt that great, but I did a load of debugging and I came to the conclusion that everything is working up until the curl command.

I replaced:

curl -s
-d "payload=$payload"
"$webhook_url"
>/dev/null

with

curl -X POST
--data-urlencode "payload=$payload"
$webhook_url
>/dev/null

and now it works fine.

Just in case anyone else has a similar problem.

@rchannel
Copy link

rchannel commented Apr 1, 2016

Tried these changes and now I get HTTP/1.1 503 Service Unavailable on the payload. Any ideas?

@nebbian
Copy link

nebbian commented Sep 21, 2017

Thanks @yanniboi, I had similar problems, and your fix solved it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants