Re: [ansible-project] Curl -F option and ansible URI module

2017-05-11 Thread Matt Martz
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 Kamali wrote:

[ansible-project] Curl -F option and ansible URI module

2017-05-11 Thread Dean Kamali
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