title: Converting Command Curl into PHP curl
body: <p>I would like to convert the following command CURL into P is there an online convert? or can someone explain how to convert please</p>
  
  <pre><code>curl "http://nseindia.com/products/dynaContent/equities/indices/historicalindices.jsp?indexType=CNX"%"20NIFTY&amp;fromDate=27-07-2015&amp;toDate=27-07-2015"
  &lt;p&gt;-H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"&lt;/p&gt;
  &lt;p&gt;-H "Cache-Control: max-age=0"&lt;/p&gt;
  &lt;p&gt;-H "Accept-Encoding: gzip, deflate, sdch"&lt;/p&gt;
  &lt;p&gt;-H "Proxy-Connection: keep-alive"&lt;/p&gt;
  &lt;p&gt;-H "Accept-Language: en-GB,en-US;q=0.8,en;q=0.6"&lt;/p&gt;
  &lt;p&gt;-H "User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36"&lt;/p&gt;
  &lt;p&gt;--compressed&lt;/p&gt;
  </code></pre>
  
  <p>i have added the p tag to make it look clean please ignore it.</p>