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

curl-and-php

Re: retrieving complete response using curl_exec()

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 3 Feb 2005 12:50:11 +0100 (CET)

On Wed, 2 Feb 2005, Michael wrote:

> Finally, if I use curl on the command line, I get the whole thing. So it
> seems like either there's something I'm not doing right in my program, or
> something isn't set up right.

I'm a curl guy, not a PHP guy. If curl works fine like that, I don't know much
on how to proceed with the debugging.

> Is there some transfer limit setting somewhere that might be set wrong?

No.

> It also doesn't matter if I set CURL_HTTP_VERSION_1_0 or
> CURL_HTTP_VERSION_1_1. Since the first one forces the server not to send
> "Transfer-encoding: chunked", I thought that might help, but it doesn't.

It shouldn't. curl works fine with both.

> What else should I look at? When you say it's a bug on either end, do you
> have any suggestions as to how I could figure out where the bug is?

Since the command line tool works, I'd guess it is a problem with your program
or the PHP/curl binding.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2005-02-03