title: Getting string instead of xml response in curl
body: <p>I have the following curl request</p>
  
  <pre><code>$url='http://test/paynetz/epi/fts?login=160&amp;pass=Test@123&amp;ttype=NBFundTransfer&amp;prodid=NSE&amp;amt=50&amp;txncurr=INR&amp;txnscamt=0&amp;clientcode=TkFWSU4%3d&amp;txnid='.urlencode($string).'&amp;date='.urlencode($date).'&amp;custacc=1234567890&amp;udf1=ajeesh&amp;udf2=sam@zz.com&amp;udf3=940000000&amp;udf4=arrackaparmabilhouse&amp;ru=http://www.zwitch.co';
          $curl = curl_init();
          curl_setopt($curl, CURLOPT_URL, $url);
          curl_setopt($curl, CURLOPT_HEADER, 0);
          curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
          curl_setopt($curl, CURLOPT_RETURNTRANSFER, false);  
          echo $auth = curl_exec($curl);
  </code></pre>
  
  <p>Im getting this</p>
  
  <pre><code>http://test/paynetz/epi/ftsNBFundTransfer267050dHwIMJR%2FucGOZcnocTnwvISAVaeNZK93Y8veI%2Bb1DtY%3D11
  </code></pre>
  
  <p>Instead of an xml.Im getting the values only not the xml.</p>
  
  <p>I had 505 error inthe response,so I used urlencode($string) instead of $string</p>