PHP cURL Error Calling By Web URL
<p>I got the following PHP code:</p>

<pre><code>    $webUrl = WEB_URL_CONSTANT;
    $webUrl = str_replace('%op%', $operator, $webUrl);
    $webUrl = str_replace('%subno%', $msisdn, $webUrl);

    echo $webUrl;

    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $webUrl);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    $xml = curl_exec($ch);
    curl_close($ch);
    echo $xml;
</code></pre>

<p>The $xml variable return empty, but if I replace the $webUrl on the following line with the direct link to the URL then I get valid values back:</p>

<pre><code>    curl_setopt($ch, CURLOPT_URL, "http://....");
</code></pre>

<p>Why? How can I fix?</p>

<p>Thanks</p>
