Skip to content

Instantly share code, notes, and snippets.

@Altai-man
Created December 11, 2018 16:59
Show Gist options
  • Save Altai-man/ca2c8cef7529fb522cab0a515b412937 to your computer and use it in GitHub Desktop.
Save Altai-man/ca2c8cef7529fb522cab0a515b412937 to your computer and use it in GitHub Desktop.
my %ca = ca-file => 'foo/path/ca-crt.pem';
Cro::HTTP::Client.post('https://url', content-type => 'application/json',
headers => [Accept => 'application/json'],
body => { :username('a'), :password('b') },
:%ca);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment