title: PHP : Sending Boundary Values in Curl Headers
body: <p>I want to send the below data in curl headers.</p>
  
  <pre><code>Content-Type: multipart/form-data; boundary=---------------------------28854217951032752725060171
  </code></pre>
  
  <p>I used below code , but it seems not to work</p>
  
  <pre><code>$ch = curl_init();
  
  curl_setopt($ch,CURLOPT_URL, $url); 
  curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
  curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.A.B.C Safari/525.13");
  curl_setopt($ch,CURLOPT_HTTPHEADER,array('Content-Type: multipart/form-data; boundary=---------------------------28854217951032752725060171'));
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  curl_setopt($ch,CURLOPT_COOKIEJAR, "cookie.txt");
  curl_setopt($ch,CURLOPT_COOKIEFILE, "cookie.txt");
  curl_setopt($ch,CURLOPT_POST, 1);
  curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);
  $result = curl_exec($ch); 
  $last = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
  $info = curl_getinfo($ch);
  return array($result,$last,$info);
  curl_close($ch);
  </code></pre>
  
  <p>What is the correct way to send the boundary value.<br>
  P.s : 28854217951032752725060171 is constant value.</p>