Skip to content

Instantly share code, notes, and snippets.

@rchannel
Created May 13, 2015 17:36
Show Gist options
  • Save rchannel/0f6724aaf45fc881f8d7 to your computer and use it in GitHub Desktop.
Save rchannel/0f6724aaf45fc881f8d7 to your computer and use it in GitHub Desktop.
awesome = HTTParty.get("#{url}/run", header: "Accept: application/x-yaml", :verify => false, body: {:debug_output => $stdout, :client => "local",:tgt => "#{server}", :fun => "test.ping", :username => "#{username}", :password => "#{password}", :eauth => "pam"})
Trying to get:
curl -ksi localhost:8000/run \
-H 'Accept: application/x-yaml' \
-d client='local' \
-d tgt='shrike' \
-d fun='test.ping' \
-d username='saltdev' \
-d password='saltdev' \
-d eauth='pam'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment