Curl request response not getting
<p>I am sending payment info to Virtual merchant payment gateway for payment system using curl. This is my code :</p>

<pre><code>$Url= "https://www.myvirtualmerchant.com/VirtualMerchant/process.do";
    // is cURL installed yet?
    if (!function_exists('curl_init')){
        die('Sorry cURL is not installed!');
    }

    // OK cool - then let's create a new cURL resource handle
    $ch = curl_init();

    // Now set some options (most are optional)

    // Set URL to download
    curl_setopt($ch, CURLOPT_URL, $Url);


    // Include header in result? (0 = yes, 1 = no)
   // curl_setopt($ch, CURLOPT_HEADER, 0);

    // Should cURL return or print out the data? (true = return, false = print)
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

    // Timeout in seconds
    curl_setopt($ch, CURLOPT_TIMEOUT, 10);


    $fields = array(
            'ssl_card_number'=&gt;urlencode($_POST['ssl_card_number']),
            'ssl_exp_date'=&gt;urlencode($_POST['ssl_exp_date']),
            'ssl_cvv2cvc2'=&gt;urlencode($_POST['ssl_cvv2cvc2']),
            'ssl_avs_address'=&gt;urlencode($_POST['ssl_avs_address']),
            'ssl_avs_zip'=&gt;urlencode($_POST['ssl_avs_zip']),
            'ssl_merchant_id'=&gt;urlencode($_POST['ssl_merchant_id']),
            'ssl_user_id'=&gt;urlencode($_POST['ssl_user_id']),
            'ssl_pin'=&gt;urlencode($_POST['ssl_pin']),
            'ssl_transaction_type'=&gt;urlencode($_POST['ssl_transaction_type']),
            'ssl_amount'=&gt;urlencode($_POST['ssl_amount']),
            'ssl_show_form'=&gt;urlencode($_POST['ssl_show_form']),
            'TransactionType'=&gt;urlencode($_POST['TransactionType'])
        );

    //url-ify the data for the POST
    foreach($fields as $key=&gt;$value) { $fields_string .= $key.'='.$value.'&amp;'; }
    rtrim($fields_string,'&amp;');
    curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string);

    // Download the given URL, and return output
    echo $output = curl_exec($ch);

    // Close the cURL resource, and free system resources
    curl_close($ch);

    print_r($output); 
</code></pre>

<p>But in $output i am getting nothing, not any error or message. Am i doing it wrong ? please tell me ?</p>
