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

curl-and-php

Re: nothing in $output var

From: neugi <neugii_at_gmail.com>
Date: Tue, 28 Aug 2007 16:38:50 +0200

Hi,

thx for that quick repley. it worked.

best

2007/8/28, Broekhuis,Robert R. <BROEKHRR_at_airproducts.com>:
>
> 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
>
>

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