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

curl-and-php

768?

From: mixo <mixo_at_beth.uniforum.org.za>
Date: Mon, 09 Sep 2002 12:30:37 +0200

When a connection is made succesfully, I get return status 768 from:

++++++++++++++++++++++++++++++++++++++++++++++++
     $ch = curl_init("$url");
     curl_setopt ($ch, CURLOPT_HEADER, 0);
     curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
     curl_setopt($ch,CURLOPT_VERBOSE,1);
     curl_setopt($ch,CURLOPT_POST, 1);
     curl_setopt ($ch,CURLOPT_POSTFIELDS,$urlParameters);
     $mypage = curl_exec ($ch);
     echo curl_errno($ch);
     $result = curl_errno($ch);
     curl_close ($ch);
++++++++++++++++++++++++++++++++++++++++++++++++

if I remove ( or comment out):
    curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
 
I get 0 as a return status as I should. What's going on here? I need
to set the option as I need the page contents stored in a variable.

P.S The function 'curl_errno' - is not dumented in 'php-4.1.2' but is
        on the 'php' site.

-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
Received on 2002-09-09