Skip to content

Instantly share code, notes, and snippets.

@adamw
Created June 7, 2019 09:31
Show Gist options
  • Save adamw/5de0cf6d6b0c56b85ad05fe512a0258e to your computer and use it in GitHub Desktop.
Save adamw/5de0cf6d6b0c56b85ad05fe512a0258e to your computer and use it in GitHub Desktop.
println(request.toCurl)
/*
Outputs:
curl -L --max-redirs 32 -X POST
-H "Content-Type: application/json; charset=utf-8" -H "X-Auth: 123"
--data '{"name":"Mary","age":52}'
"http://httpbin.org/post"
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment