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

curl-and-php

Re: getting extra output after post

From: <Nigel_Soon_at_advanis.ca>
Date: Wed, 15 Aug 2001 18:11:02 -0600 (Mountain Daylight Time)

Thanks I got this working by adding:

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

and then printing the result returned from the curl_exec.

I didn't figure out why the 0 was popping up but this works and I have to
move along.

If you really want to have a look at an example let me know and I'll
provide one.

Thanks,

nigel

On Thu, 16 Aug 2001, Daniel Stenberg wrote:

> On Wed, 15 Aug 2001 Nigel_Soon_at_advanis.ca wrote:
>
> > I'm using curl to do a post and when I run the curl_exec($ch) it does the
> > post and the return results are displayed, however after the </HTML> it
> > is printing a 0. It seems to be in the return of the post because if I
> > echo something after the curl_exec statement it come after the 0.
> >
> > Has anybody had any experience with this?
>
> Can you show us an example? Preferably also the headers you got.
>
> I assume you're using curl 7.8?
>
> (My gut reaction is that it sounds as if the chunked-encoding is either wrong
> from the server or read badly by libcurl, but I can't say that for sure yet)
>
> --
> Daniel Stenberg -- curl dude -- http://curl.haxx.se/
>
>
>
>
>
Received on 2001-08-16