Re: [ansible-project] Curl -F option and ansible URI module
A form post is just a urlencoded string, and setting a correct header - uri: method: POST body: foo=bar=qux headers: "Content-Type": application/x-www-form-urlencoded url: "http://httpbin.org/post; On Thu, May 11, 2017 at 7:46 PM Dean Kamaliwrote:
[ansible-project] Curl -F option and ansible URI module
I'm trying to use ansible's uri module to mimic curl command, I need to pass options when uploading an XML file. My curl command has number of options passed via -F, --form