cURL / Mailing Lists / curl-users / Single Mail


Re: curl http: == Info: Connection #0 to host left intact

From: Ravinder Verma <>
Date: Thu, 21 Sep 2006 17:55:05 -0700

Ok I finally figured out the mystery. God bless GDB!
strtoll library function is returning zero content length which makes
Curl_readwrite in lib/transfer.c quit gracefully. It works for
transfer -encoding type chunked as there it ignores content length and
keep reading so this explains why it works for few sites and fails for
rest. Now we are using curl supplied strtoll and things looks good.


On 9/21/06, Dan Fandrich <> wrote:
> On Thu, Sep 21, 2006 at 03:27:43PM -0700, Ravinder Verma wrote:
> > I tried building curl using older tool chain gcc version 2.95.3 it works
> > perfect no issues. With latest tool chain gcc 3.4.1 it results failure
> already
> > reported on this thread. I was about to try gdb+printf will let you now.
> But in
> > meantime if gcc version difference gives any pointer please let me know.
> Try compiling it with different optimization flags (i.e. none). Compiler
> optimization bugs are a possible cause for the difference.
> >>> Dan
> --
> The web change of address service
> Let webmasters know that your web site has moved
Received on 2006-09-22