cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Curl not recognizing quotes

From: <wes_at_kodehost.co.uk>
Date: Tue, 15 Sep 2009 21:56:31 +0700

Hi Guys,

I am trying to use this curl function below:

function file_get_contents_curl($url){
        $ch = curl_init();
          curl_setopt($ch, CURLOPT_HEADER, 0);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_URL, $url);
        $data = curl_exec($ch);
        curl_close($ch);
        return $data;
}

When I use php's function: file_get_contents the quotes appear.

But when using the function above I just get this: u0026quot;

Is there anything I can pass in the function so this is read correctly?

Many thanks,
Wes

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2009-09-15