title: Rest request body to CURLOPT_POSTFIELDS
body: <p>I'm trying to pass request body into a curl call and I'm stuck.</p>
  
  <p>I in the drupal workflow rule I have defined a data field for the body parameters I need to call a service as key value pairs.The dump for the $data variable looks as such...</p>
  
  <pre><code>artifact1=valueXYZ
  artifact2=value123
  </code></pre>
  
  <p>My postman output for the <code>CURLOPT_POSTFIELDS</code> is a string </p>
  
  <pre><code>  i.e.(------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\artifact1\r\n\r\nvalueXYZ\r\n)
  </code></pre>
  
  <p>In PHP how do I get <code>artifact1=valueXYZ</code> to into a format for <code>CURLOPT_POSTFIELDS</code>?</p>