I had build a curl command
cmd = %Q(curl --tlsv1.2 -b #{config['cookies']} -c #{config['cookies']} --
connect-timeout 60 -X POST 
            -H 'Content-Type: application/xml'
            -H 'Accept: application/xml'
            -d '#{xml_content}'
            --location #{uri})
puts cmd
The output is as follow when the string is printed
curl --tlsv1.2 -b /tmp/cookie.txt -c /tmp/cookie.txt --connect-timeout 60 -X POST
            -H 'Content-Type: application/xml'
            -H 'Accept: application/xml'
            -d '<?xml version="1.0" encoding="UTF-8" ?>
            <ns:login xmlns:ns="http://www.actility.com/smp/ws/admin">
            <login>hello</login><password>wPa4GwYbRTCw0Uy!</password></ns:login>'
            --location https://myapi.application.com
How do I execute it in ruby w/o modifying the cmd string to a single cmd ?
 
     
    