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

curl-and-php

RE: nothing in $output var

From: Broekhuis,Robert R. <BROEKHRR_at_airproducts.com>
Date: Tue, 28 Aug 2007 10:12:22 -0400

You need to set CURLOPT_RETURNTRANSFER to 1.

________________________________

From: curl-and-php-bounces_at_cool.haxx.se
[mailto:curl-and-php-bounces_at_cool.haxx.se] On Behalf Of neugi
Sent: Tuesday, August 28, 2007 10:07 AM
To: curl-and-php_at_cool.haxx.se
Subject: nothing in $output var

Hi,

im new to curl and i've a little problem. i wrote this scritp.

$handle = curl_init();

        $url = "http://xxxxx.xxx/detail.php?artNo=
".urlencode($data['artnr']);

        curl_setopt($handle, CURLOPT_URL, $url);

        $output = curl_exec($handle);

        //store $output in a db

    curl_close($handle);

now my problem is that no string is in the output var, and the script is
printing the result on the screen and the value in the $output is '1',

what i'm doing wrong?

best

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-08-29