Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
「idobatir」 Post messege to 'idobata Generic Web Hook'
:application.start(:asn1)
:application.start(:crypto)
:application.start(:public_key)
:application.start(:ssl)
:application.start(:inets)
[url, message] = System.argv()
:httpc.request(:post, {'#{url}', [], 'application/x-www-form-urlencoded', 'source=#{message}'}, [{:ssl,[{:verify,0}]}], [])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment