Created
December 7, 2013 06:04
-
-
Save bash0C7/7837806 to your computer and use it in GitHub Desktop.
「idobatir」
Post messege to 'idobata Generic Web Hook'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: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