Skip to content

Instantly share code, notes, and snippets.

@bash0C7
Created December 7, 2013 06:04
Show Gist options
  • Save bash0C7/7837806 to your computer and use it in GitHub Desktop.
Save bash0C7/7837806 to your computer and use it in GitHub Desktop.
「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